Skip to content

Instantly share code, notes, and snippets.

@rpq
Created February 29, 2016 18:46
Show Gist options
  • Save rpq/d2269b5d03d4c392c1f2 to your computer and use it in GitHub Desktop.
Save rpq/d2269b5d03d4c392c1f2 to your computer and use it in GitHub Desktop.
import requests
url = 'https://ets.aeso.ca/'
cert_key = ('cert.pem', 'key.pem')
headers = {'User-Agent': 'Mozilla/5.0 (IE 11.0; Windows NT 6.3; Trident/7.0; .NET4.0E; .NET4.0C; rv:11.0) like Gecko'}
r = requests.get(url, cert=cert_key, verify=False)
print r.text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment