How To Completly Reset Requests?
I'm using requests to make many http requests, and some time, i get timeouts. When i restart the python program, it goes fine. I tried to replicate the 'restart the program' with e
Solution 1:
not entirely sure, but try this:
this tells the server that you wish to close the connection.
try:
session.get(url=url, data=body, headers={'Connection':'close'})
except requests.Timeout:
session=requests.session()
Post a Comment for "How To Completly Reset Requests?"