curl post
2009-06-11 18:10 cppguy 阅读(466) 评论(0) 编辑 收藏 举报使用Curl命令Post XML如下:
XML文件
<getProfile>
<account>foo@CMCC</account>
</getProfile>
<account>foo@CMCC</account>
</getProfile>
echo '<getProfile><account>foo@CMCC</account></getProfile>' | curl -X POST -H 'Content-type: text/xml' -d @- http://119.145.0.78:8082/jil?op=GETPROFILE