Added basic http connection code

This commit is contained in:
Benjamyn Love 2017-05-22 01:31:39 +10:00
parent b738276519
commit 09c6c6eadc
3 changed files with 8 additions and 4 deletions

View File

@ -1 +0,0 @@
test content for git tutorial

8
HTTPy.py Normal file
View 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()

View File

@ -1,3 +0,0 @@
#!/bin/python2.7
print "I hope this works :D"