Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. Import requests
  2. es_server = "IP:PORT"
  3. response = requests.get("http://" + es_server)
  4. if response == '<Response [200]>':
  5. print "yep"
  6.  
  7. if response.status_code == 200:
  8. print "yep"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement