I am using cURL command line utility to send HTTP POST to a web service. I want to include a file’s contents as the body entity of the POST. I have tried using -d </path/to/filename> as well as other variants with type info like --data </path/to/filename> --data-urlencode </path/to/filename> etc… the file is always attached. I need it as the body entity.

4 Answers
4

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *