请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

爬虫构建POST请求时,请求表单中字段以0开头的数字无法赋值

老师,您好!

目前沟通以request构建post请求时,请求表单中字段以0开头是数字无法赋值

主要area=020000 ,以数字为零开始

请求头信息:
POST https://www.51jingying.com/common/searchcase.php?act=ajaxGetCase HTTP/1.1
Host: www.51jingying.com
Connection: keep-alive
Content-Length: 134
Accept: application/json, text/javascript, /; q=0.01
Origin: https://www.51jingying.com
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://www.51jingying.com/common/searchcase.php?5CC4CE=1008
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Cookie: jyGUID=GUID%3D1558539426040856995%26%7C%26guiddate%3D1558539426; jyhistoryseach=sm_his%3D%26%7C%26sc_his%3D; jyhhotarea=jyh_areacode%3D%26%7C%26jyh_checkdate%3D20190522%26%7C%26jyh_lastarea%3D; HasMsg=0%7C0%7C0%7C0%7C1; hotarea=areacode%3D020000%26%7C%26checkdate%3D20190723%26%7C%26lastarea%3D020000

casename=&alltext=0&area=020000&highpay=02%2C03%2C04%2C05%2C06&industry=&caseid=&degree=&workyear=&companytype=&companysize=&casetype=

正在回答 回答被采纳积分+3

1回答

大壮老师 2019-07-25 20:17:42

字符串不行吗

0 回复 有任何疑惑可以回复我~
  • 提问者 qq_Peace_崔_0 #1
    以双引号变为字符串赋值无效(0开头的数字)
    回复 有任何疑惑可以回复我~ 2019-07-25 20:21:08
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信