python中loadpage_python requests发送post Page load erro问题

post过去,返回“Page load error”,一般是什么原因造成?

带参数的post,用python的requests发送。

返回页面如下:

3bc526e5707e62b4643fffd0e58c8e13.png

但是我用post在线工具又是ok的。

请教这是什么原因造成的?

************************补充 测试**********************************************

post在线工具 显示结果:

返回的HTML:

{

"args": {},

"data": "",

"files": {},

"form": {},

"headers": {

"Accept": "text/html, application/xhtml+xml, */*",

"Content-Type": "application/x-www-form-urlencoded",

"Host": "httpbin.org",

"Referer": "http://www.sufeinet.com",

"User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0"

},

"json": null,

"origin": "203.171.235.170",

"url": "http://httpbin.org/post"

}

在控制台:

>>>import requests

>>>r=requests.post("http://httpbin.org/post")

>>>r.text

也能返回上面的结果。

没 post 对

把 url 改成 http://httpbin.org/post,和在线工具的比比,有什么不同

玩蛇网文章,转载请注明出处和文章网址:https://www.iplaypy.com/wenda/wd18997.html

相关文章 Recommend

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值