Python-Requests close http connection
I was wondering, how do you close a connection with Requests (python-requests.org)?
I was wondering, how do you close a connection with Requests (python-requests.org)?
I am making HTTP requests using the requests library in python, but I need the IP address from the server that responded to the HTTP request and I’m trying to avoid making two calls (and possibly having a different IP address from the one that responded to the request).
I’m looking for information on thread safety of urllib2 and httplib.
The official documentation (http://docs.python.org/library/urllib2.html and http://docs.python.org/library/httplib.html) lacks any information on this subject; the word thread is not even mentioned there…
I am trying to verify the that target exposes a https web service. I have code to connect via HTTP but I am not sure how to connect via HTTPS. I have read you use SSL but I have also read that it did not support certificate errors. The code I have got is from the python docs: