不多说 先上代码供参考 这是请求参数
GET https://c0.3.cn/stock?skuId=100012483982&venderId=1000085463&cat=12259,12260,9435&area=2_2919_50779_21636&buyNum=1 HTTP/1.1
Accept: */*
Accept-Language: zh-cn
Cache-Control: no-cache
Host: c0.3.cn
Referer: https://c0.3.cn/stock?skuId=100012483982&venderId=1000085463&cat=12259,12260,9435&area=2_2919_50779_21636&buyNum=1
User-Agent: Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1)
运行得出返回
HTTP/1.1 200 OK
Content-Length: 1402
Content-Type: application/json;charset=gbk
Date: Fri, 05 May 2023 05:16:25 GMT
Server: jfe
Strict-Transport-Security: max-age=7776000
T.ser: 7-81
{"stock":{"freshEdi":null,"Ext":"tsfw:0,IsYouShelfLife,isdangergoods:0,SoldOversea:0,SendService:0,jdzs:1,isOverseaPurchase:0,thwa:0,storeProperty:0,isXfpDept,is7ToReturn:0,platform","realSkuId":100012483982,"promiseResult":"","nationallySetWare":null,"sidDely":"145","channel":1,"serviceInfo":"?? <span class='hl_red'>????</span> ????, ??????????. ","rid":null,"isSopUseSelfStock":"0","shopMemberStatus":null,"IsPurchase":false,"cla":[],"eb":"-1000000000","ec":"-1","skuId":100012483982,"Dc":[],"yjhxMap":[],"isWalMar":false,"area":{"townName":"??????","cityName":"??????","success":true,"provinceName":"???","countyName":"????"},"ab":"-1","ac":"-1","ad":"-1","ae":"-1","skuState":0,"PopType":0,"af":"-1","ag":"-1","shopLevel":null,"isSam":false,"fxgCode":"0","vd":null,"rfg":0,"Dti":null,"jdPrice":{"p":"-1.00","op":"699.00","id":"100012483982","m":"2000.00"},"rn":-1,"support":[],"venderType":null,"PlusFlagInfo":"","code":1,"isPlus":false,"afsCode":0,"stockDesc":"<strong>???</strong>??????????????","sid":"145","isJDexpress":"0","dcId":"3","StockState":34,"StockStateName":"???","dcashDesc":"","m":"0","self_D":{"vid":1000085463,"df":null,"cg":"12259:12260:9435","colType":0,"deliver":"????é????????????","id":1000085463,"type":0,"vender":"????é????????????","linkphone":"","url":"http://mall.jd.com/index-1000085463.html","po":"false"},"ArrivalDate":"","v":"0"},"choseSuit":[]}
此程序可以正常一直运行 不会异常等