1
def put_message(archive_name, fileobj):
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()
8
if response.status == 400:
10
elif response.status == 200: