我正在尝试使用 Linux 上的 python-requests 模块对 IPv6 服务器进行后期调用。这给了我一个 502 Bad Gateway 错误。
以下是版本的详细信息:
- Python版本:2.7
- 请求模块版本:2.22
但是我尝试从 Windows 机器发出相同的请求(使用 requests 2.21),并且请求成功。
payload = {
'username' : "abc",
'password' : "xxxx"
}
response = requests.post('https://[2606:b400:605:b857::489]/xyz/auth/tokens', data=payload, verify=False)
print response
我收到 502 Bad Gateway 响应代码