How to post PUT request under the Windows using curl?

后端 未结 3 1904
挽巷
挽巷 2020-12-16 07:55

I need to post XML data via curl.exe under windows using PUT request.

In the curl help I found:

-d/--data    HTTP POST data (H)
         


        
3条回答
  •  误落风尘
    2020-12-16 08:44

    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.

提交回复
热议问题