curl 常用命令

1,最近想从linux查看外网ip地址,百度了一下发现不少

curl icanhazip.com

curl ifconfig.me

等等

2,通过curl将xml文件POST给远端服务器

cat /python/post/post.xml | curl --connect-timeout 10 --max-time 20 -X POST -H 'Content-type:text/xml' -d @- http://10.132.1.50:8081/WdzjWebService/services/GetInfoServiceImpl?wsdl

posted @ 2015-01-19 17:18  zenghui940  阅读(150)  评论(0编辑  收藏  举报