路漫漫其修远兮
吾将上下而求索

linux网站访问:curl命令

http://www.cnblogs.com/duhuo/p/5695256.html

curl 'http://apply.bjhjys.gov.cn/apply/user/person/login.html' -H 'Cookie: _ckky=493fcesaaeb74ff9b2d0da088349611f; JSESSIONID=6231198f07E29BC0A8012C6038FA53-n1.Tomcat1; JSESSIONID=B64799AAfF905D7957FC3E8CF046-n1.Tomcat1; _gscu_1590280280=774477237ntgk915; _gscs_1590280280=t77463465eruyc715|pv:5; _gscbrs_1590280280=1; __utma=25041897.1302430439.1477447725.1477447725.1477463467.2; __utmb=25041897.5.10.1477463467; __utmc=25041897; __utmz=25041897.1477447725.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)' -H 'Origin: http://www.bjdfyd.gov.cn' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.8,zh-CN;q=0.6,zh;q=0.4' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'Cache-Control: max-age=0' -H 'Referer: http://www.bjsfd.gov.cn/index.html?ran=591969370' -H 'Connection: keep-alive' –data 'userType=0&ranStr=&userTypeSelect=0&serviceUserTypeSelect=0&serviceType=1&personMobile=1316dsffew947&loginType=mobile&unitLoginTypeSelect=0&unitMobile=&orgCode=&password=fewfe&pin=&validCode=jcd5' –compressed ;

curl设置超时检查

连接超时时间: –connect-timeout 

数据传输的最大允许时间用: -m 

 curl -s --connect-timeout 5 -m 5 localhost:8081/monitor
 

curl -H "Accept: application/json" -H "Content-type: application/json" -X POST \
-d '{"appKey":"16594841pz","cityCode":"24","data":{"reviseDescription":"","reviseId":"486926"},\
"timestamp":"2019-10-29 11:57:47.506","userCode":"60011066","version":"v1"}'  \
http://pzjc.andblog.com/api/revise/proof/upload

未经允许不得转载:江哥架构师笔记 » linux网站访问:curl命令

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址