我正在尝试发送内容类型为 application / x-www-form-urlencoded 的POST请求,但出现 406不可接受错误>
Python BOT正在Ubuntu 16.04(x64)VPS上运行
我尝试过更改 User Agent ,更改 Accept 标头,但没有一个有效
headers = {
"Accept" : "*/*",
"Content-Type" : "application/x-www-form-urlencoded",
"Origin" : "https://www.beams-tv.com",
"Referer" : "https://www.beams-tv.com/user/add",
"User-Agent" : "Mozilla/5.0 (Windows NT x.y; rv:10.0) Gecko/20100101 Firefox/10.0"
}
req = session.post(url, data=data, headers=headers)