Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import httplib
|
||||
|
||||
HOST = "localhost"
|
||||
PORT = 8000
|
||||
|
||||
conn = httplib.HTTPConnection(HOST, PORT)
|
||||
conn.request("GET", "/somefile")
|
||||
|
||||
response = conn.getresponse()
|
||||
print 'Server Status: %d' % response.status
|
||||
|
||||
print 'Server Message: %s' % response.read()
|
||||
Loading…
Add table
Add a link
Reference in a new issue