Added basic http connection code
This commit is contained in:
parent
b738276519
commit
09c6c6eadc
@ -1 +0,0 @@
|
|||||||
test content for git tutorial
|
|
||||||
8
HTTPy.py
Normal file
8
HTTPy.py
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/python2.7
|
||||||
|
|
||||||
|
import httplib
|
||||||
|
conn = httplib.HTTPSConnection("www.python.org")
|
||||||
|
conn.request("GET", "/")
|
||||||
|
r1 = conn.getresponse()
|
||||||
|
|
||||||
|
print r1.read()
|
||||||
Loading…
x
Reference in New Issue
Block a user