Which Python library supports HTTP pipelining? – Software Recommendations Stack Exchange



Was able to do it on python 2.7 / httplib.
Before request:

conn._HTTPConnection__state = httplib._CS_IDLE

Before getresponse:

conn._HTTPConnection__state = httplib._CS_REQ_SENT

Where conn is the connection returned by httplib.HTTPSConnection.
In my case all requests were of the same type, same headers, except for one variable in GET string. Dunno if this will work with different request types.



Source link

Related Posts

About The Author

Add Comment