Send request to cURL with post data sourced from a file
You’re looking for the –data-binary argument: curl -i -X POST host:port/post-file \ -H “Content-Type: text/xml” \ –data-binary “@path/to/file” In the example above, -i prints out all the headers so that you can see what’s going on, and -X POST makes it explicit that this is a post. Both of these can be safely omitted without … Read more