1
from httplib import HTTPConnection
3
def put_message(archive_name, file_obj):
4
connection = HTTPConnection('localhost', 8435)
5
connection.request('POST', 'foo', file_obj.read())
6
response = connection.getresponse()
7
print response.status, response.reason
1
def put_message(archive_name, fileobj):