curl how to send a post request in a file code example
Example 1: curl post
curl --data "param1=value1¶m2=value2" https://example.com/post
Example 2: curl data from file
curl -i -X POST host:port/post-file \
-H "Content-Type: text/xml" \
--data-binary "@path/to/file"