I need to post XML data via curl.exe under windows using PUT request.
In the curl help I found:
-d/--data <data> HTTP POST data (H)
What should I supply for <data>?
<data>
curl sample calls
# with inlining plain data curl -X PUT -d "payload" http://localhost # referrring file curl -X PUT -d @myXmlFile.xml http://localhost
If your windows curl-port does not support it go for cygwin. It is a linux-like environment for windows and also offers "a proper" curl.
2.1m questions
2.1m answers
60 comments
57.0k users