Created
August 26, 2018 08:43
-
-
Save mizanRahman/197abff7b2458504cefe47b9d06a0b37 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 requests | |
services = ( | |
("http://httpbin.org/get", 'POST'), | |
("http://httpbin.org/get", 'POST'), | |
("http://httpbin.org/get", 'POST'), | |
("http://httpbin.org/get", 'POST'), | |
("http://httpbin.org/get", 'POST'), | |
("http://httpbin.org/get", 'POST') | |
) | |
print "url", "------------------------origin" | |
for service in services: | |
response = requests.get(service[0]) | |
requests.Request | |
res_js = response.json() | |
print res_js['url'], res_js['origin'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment