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

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,和在线工具的比比,有什么不同

【热门文章】
【热门文章】