代码改变世界

curl post

2009-06-11 18:10  cppguy  阅读(464)  评论(0编辑  收藏  举报

使用Curl命令Post XML如下:

XML文件

<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