Created
September 18, 2015 11:37
-
-
Save jorge-lavin/83807f8708d97fcccb8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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