Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Import requests
- es_server = "IP:PORT"
- response = requests.get("http://" + es_server)
- if response == '<Response [200]>':
- print "yep"
- if response.status_code == 200:
- print "yep"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement