summaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
authorTim Redfern <tim@herge.(none)>2013-03-07 14:16:55 +0000
committerTim Redfern <tim@herge.(none)>2013-03-07 14:16:55 +0000
commita2d174346667f2e81a7612aecb78da746081d490 (patch)
tree13c0f0e10a1df1f36c5b04e72a445c9d75886f46 /http
parentc8b7dd8fadea12792a9e93881dfd5eca461b42e1 (diff)
building REST API
Diffstat (limited to 'http')
-rwxr-xr-xhttp2
1 files changed, 1 insertions, 1 deletions
diff --git a/http b/http
index 0436c6e..176e01a 100755
--- a/http
+++ b/http
@@ -6,7 +6,7 @@ parser.add_argument("method",default="GET",nargs='?')
parser.add_argument("path",default="/",nargs='?')
parser.add_argument("body",default="body",nargs='?')
args=parser.parse_args()
-connection = httplib.HTTPConnection('54.228.219.55:80')
+connection = httplib.HTTPConnection('127.0.0.1:9000')
connection.request(args.method, args.path, args.body)
print connection.getresponse().read()