Re: httplib headers

2009-07-30 Thread MRAB
David Brochu wrote: Using the following code I am trying to pass a header to my POST request. (Note: urls masked) file = sys.argv[0] url = sys.argv[1] conn = httplib.HTTPConnection("XX.XXX.XX.XXX",) headers = {'content-type':'application/xml'} conn.request("POST",url,file,headers) response

httplib headers

2009-07-30 Thread David Brochu
Using the following code I am trying to pass a header to my POST request. (Note: urls masked) file = sys.argv[0] url = sys.argv[1] conn = httplib.HTTPConnection("XX.XXX.XX.XXX",) headers = {'content-type':'application/xml'} conn.request("POST",url,file,headers) response = conn.getresponse() he