Binary Data Posting with curl

You don’t need –header “Content-Length: $LENGTH”. curl –request POST –data-binary “@template_entry.xml” $URL Note that GET request does not support content body widely. Also remember that POST request have 2 different coding schema. This is first form: $ nc -l -p 6666 & $ curl –request POST –data-binary “@README” http://localhost:6666 POST / HTTP/1.1 User-Agent: curl/7.21.0 (x86_64-pc-linux-gnu) libcurl/7.21.0 OpenSSL/0.9.8o … Read more