I am sending a HTTP POST by using the following codes: opener = urllib2.build_opener(proxyHandler, MultipartPostHandler) params = { "audio" : "http://sample.com/my.wav", "data" : open(file, "rb") } print opener.open(myURL, params).read()
How do I log or print out the actual POST message (including headers) that is sent out? How do I log or print out the response headers as well? Thanks -- http://mail.python.org/mailman/listinfo/python-list