Share

September 3, 2010

Cygwin: Use Curl POST with XML

I have not found a better way to do this on windows... but the following is the command I use to post an XML file to a URL for REST WS testing

Using cygwin

$ curl -H "Content-Type: application/xml" -d "@/tmp/body.xml" http://localhost:8080/ws/ 
If you know a better way please let me know..