|
10精币
原生写法:直接赋值cookies 重定向=真
结果 = 网页_访问_对象 (网址, 0, , 提交cookies, , 协议, , , 真, , IP)
问题:换WinHttpW后死活不成功
.版本 2
.支持库 spec
http.Auto (真)
http.SetTimeouts (1000, 1000, 1000, 5000)
' http.AutoCookies (真)
http.SetProxy (IP)
Url = “http://shop.9you.com/cart/buy?server_id=” + 登录大区 + “&DiscountId=&pay_type=” + 付款方式 + “&time=1&item_key%5B%5D=” + 活动代码 + “&ups=&cart_type=mb&buytype=buy”
http.Open (“GET”, Url)
http.SetRequestHeader (“Accept”, “text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7”)
http.SetRequestHeader (“Accept-Language”, “zh-CN,zh;q=0.9”)
http.SetRequestHeader (“Cache-Control”, “no-cache”)
http.SetRequestHeader (“Connection”, “keep-alive”)
http.SetRequestHeader (“DNT”, “1”)
http.SetRequestHeader (“Pragma”, “no-cache”)
http.SetRequestHeader (“Host”, “ljbdbu.lkjaen.com”)
http.SetRequestHeader (“Upgrade-Insecure-Requests”, “1”)
http.SetRequestHeader (“User-Agent”, “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.289 Safari/537.36”)
http.SetRequestHeader (“Cookie”, 临时cookies)
http.Send ()
Return = http.GetResponseText () ' 不用取返回文本 没啥大用
调试输出 (Return)
返回 (http.GetStatus ())
第一次写W,哪里有问题吗,改了又改都是返回302
随便问下大神。鱼刺的SetTimeouts有用吗???
|
|