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..

2 comments:

  1. Have you tried Poster for Firefox?

    https://addons.mozilla.org/en-US/firefox/addon/2691/

    -Shawn

    ReplyDelete
  2. Very nice, that is what i was looking for, thanks Shawn.

    ReplyDelete