From 09c6c6eadc6017069561612ddc6d55cb9176803a Mon Sep 17 00:00:00 2001 From: Ben Date: Mon, 22 May 2017 01:31:39 +1000 Subject: [PATCH] Added basic http connection code --- CommitTest.txt | 1 - HTTPy.py | 8 ++++++++ test.py | 3 --- 3 files changed, 8 insertions(+), 4 deletions(-) delete mode 100644 CommitTest.txt create mode 100644 HTTPy.py delete mode 100644 test.py diff --git a/CommitTest.txt b/CommitTest.txt deleted file mode 100644 index 28f409f..0000000 --- a/CommitTest.txt +++ /dev/null @@ -1 +0,0 @@ -test content for git tutorial diff --git a/HTTPy.py b/HTTPy.py new file mode 100644 index 0000000..2a3bcd5 --- /dev/null +++ b/HTTPy.py @@ -0,0 +1,8 @@ +#!/bin/python2.7 + +import httplib +conn = httplib.HTTPSConnection("www.python.org") +conn.request("GET", "/") +r1 = conn.getresponse() + +print r1.read() diff --git a/test.py b/test.py deleted file mode 100644 index 646530d..0000000 --- a/test.py +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/python2.7 - -print "I hope this works :D"