Last active
August 29, 2015 14:14
-
-
Save Calzzetta/8f833311e542132cf266 to your computer and use it in GitHub Desktop.
Connection pool urllib3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib3 | |
pool = urllib3.PoolManager(num_pools=10) | |
for i in range(100): | |
resp = pool.urlopen('POST', 'your-url.com', headers = {...}, body = '...') | |
print(resp.data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment