Skip to content

Instantly share code, notes, and snippets.

@jorge-lavin
Created September 18, 2015 11:37
Show Gist options
  • Save jorge-lavin/83807f8708d97fcccb8b to your computer and use it in GitHub Desktop.
Save jorge-lavin/83807f8708d97fcccb8b to your computer and use it in GitHub Desktop.
import http.client
import ssl
root_url='jira.ci.gsnet.corp'
children_url='secure/Dashboard.jspa'
protocol=ssl.PROTOCOL_TLSv1
context=ssl.SSLContext(protocol)
context.verify_mode=ssl.CERT_NONE
conn = http.client.HTTPSConnection(root_url, context=context)
conn.request("GET", children_url)
res = conn.getresponse()
print((res.status, res.reason))
print(res.getheaders())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment