I am trying to make a post call to IPv6 server using python-requests module on linux. This gives me a 502 Bad Gateway error.
Here are the details of the versions:
- Python version: 2.7
- Requests module version: 2.22
But I have tried to make the same request from a windows machine(using requests 2.21), and the request is successful.
payload = {
'username' : "abc",
'password' : "xxxx"
}
response = requests.post('https://[2606:b400:605:b857::489]/xyz/auth/tokens', data=payload, verify=False)
print response
I get a 502 Bad Gateway Response Code