4
我正在使用一个web界面,允许我通过curl请求发布内容。通过curl发送xml
样本后看起来是这样的:
<status>A note</status>
但每当我尝试发送这一点,似乎不接受XML
curl http://website.com/update -d '<?xml version="1.0" encoding="UTF-8"?><status>test</status>' -H 'Accept: application/xml' \ -H 'Content-Type: application/xml' -u username:password
我可以做任何其他类型的请求,只是发送这个XML似乎不起作用,我在这里做错了什么?
可能使用curl命令行复制[发送/发布xml文件](http:// stacko veronica.com/questions/3007253/send-post-xml-file-using-curl-command-line) – dkinzer