python requests发送post Page load erro问题,requestserro,post过去,返回&ld
python requests发送post Page load erro问题,requestserro,post过去,返回&ld
post过去,返回“Page load error”,一般是什么原因造成?
带参数的post,用python的requests发送。
返回页面如下:
但是我用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,和在线工具的比比,有什么不同
编橙之家文章,
相关内容
- 想用powershell写命令完成启动软件和调用python脚本怎么做
- mac电脑不支持gbk,python post数据出现乱码怎么破?,gbkpy
- linux下想打包pyqt程序为可执行程序用什么工具?,lin
- python3 snmp都用什么扩展模块,python3snmp,最近用flask弄了
- Python执行mysql语句time时间不正确何解,pythonmysql,类库
- 求Python实现跨平台实现全局性一句话方法,python全局性
- Python引用传递是在什么场景下,python引用传递场景,我写
- 要删除str数据类型中的冒号,用re正则方式应该怎么写
- pymysql语言问题求助,pymysql问题求助,这种方式可以取出
- Python pip安装卸载问题,pythonpip安装卸载,python 3.4.2
评论关闭