1
我試圖通過捲曲發佈一個XML的REST API:捲曲:POST XML數據到服務器[CMDLINE WINDOWS]
λ curl -X POST -H "Content-Type: application/xml" http://localhost/vcardservice -d '<?xml version='1.0' encoding='ISO-8859-1' standalone='yes'?><ns2:vCardRequestStore>
<vcardRequestList> <vcardRequest></vcardRequest></vcardRequestList></ns2:vCardRequestStore>'
,但不工作
Error:
< was unexpected at this time.
任何幫助讚賞。
怪裏面逃出雙qoutes,因爲是在Ubuntu的捲曲7.35.0這對我的作品。顯然我得到一個404頁面,但沒有錯誤。所以我猜這是你的'vcardservice'的一個問題' –
我在windows上... – thegio