Skip to content

Instantly share code, notes, and snippets.

@vthub
Last active January 4, 2020 00:28
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 vthub/d6a2110f48b05ed62ee49a744f343932 to your computer and use it in GitHub Desktop.
Save vthub/d6a2110f48b05ed62ee49a744f343932 to your computer and use it in GitHub Desktop.
import requests, sys
print("Calling httpbin")
r = requests.get('https://httpbin.org/get')
if r.status_code != 200:
print("Failed")
sys.exit(1)
print("Successfully completed")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment