Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
curl - 希望测试一些 Rest API - 将 xml 发布到具有基本身份验证的 rest api 的语法是什么?
这对我有用。
curl -i POST -u "user:password" -H "Content-Type: application/xml" -d "<Foo></Foo>" http://example.org/resource
http://curl.haxx.se/docs/manpage.html