Skip to content

Instantly share code, notes, and snippets.

@bear

bear/test.py Secret

Created November 1, 2014 20:02
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 bear/56401974a8f7b762d7dc to your computer and use it in GitHub Desktop.
Save bear/56401974a8f7b762d7dc to your computer and use it in GitHub Desktop.
GWG SSL test in python
#!/usr/bin/env python
# note
# python v2.7.8
# libraries:
# requests==2.4.3
# pyOpenSSL==0.14
# pyasn1==0.1.7
# ndg-httpsclient==0.3.2
import requests
while True:
r = requests.get('http://david.shanske.com', verify=True)
print r.status_code, r.request.headers
time.sleep(310)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment