Added basic http connection code
This commit is contained in:
1 parent
b738276519
commit
09c6c6eadc
3 files changed
+8
-4
No files matched your search
@@ -1 +0,0 @@
|
|||||||
test content for git tutorial
|
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/python2.7
|
||||||
|
|
||||||
|
import httplib
|
||||||
|
conn = httplib.HTTPSConnection("www.python.org")
|
||||||
|
conn.request("GET", "/")
|
||||||
|
r1 = conn.getresponse()
|
||||||
|
|
||||||
|
print r1.read()
|
||||||
Reference in new issue
Block a user