I'm doing the following request in curl:
curl --connect-timeout 2000 -d MY_JSON -H "Content-Type: application/json" -X POST MY_ADDRESS.
After 20 minutes the server sends it's response and that works perfectly. But when I tried in python, it didn't work with the following code:
import requests
data=MY_JSON
requests.post(MY_ADDRESS, json=data, headers={'Content-Type' : 'application/json'})
I can see in the logs of the server that it sent a response but it doesn't look like the client is aware of that
I tried with different timeout and tried to add verify=False, tried to add another header, Accept, but it still didn't work
Requests did work when the response was under 10 minutes or so