开发者

How do I send xml file using curl through http POST request

开发者 https://www.devze.com 2023-03-18 10:56 出处:网络
I have 开发者_开发问答a xml file in my local directory. I need to send this file to the destination url via http POST using curl. I\'ve used following command but this gives me error -

I have 开发者_开发问答a xml file in my local directory. I need to send this file to the destination url via http POST using curl. I've used following command but this gives me error -

ERROR 2 Data at the root level is invalid. Line 1, position 1.ERROR3 Object reference not set to an instance of an object.%

curl -X POST https://secure.rowebooks.co.uk/testorders/orders.aspx -F file=/Users/sts-108training/Dev/fmn/public/shared/CPI_sample.xml

I'm I missing something?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号