Skip to content

Instantly share code, notes, and snippets.

@mizanRahman
Created August 26, 2018 08:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mizanRahman/197abff7b2458504cefe47b9d06a0b37 to your computer and use it in GitHub Desktop.
Save mizanRahman/197abff7b2458504cefe47b9d06a0b37 to your computer and use it in GitHub Desktop.
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