Re: logging outgoing HTTP POST message and incoming response message

2009-07-22 Thread Gabriel Genellina
En Wed, 22 Jul 2009 18:18:37 -0300, scriptlear...@gmail.com escribió: On Jul 22, 1:54 pm, "Diez B. Roggisch" wrote: You can use proxy-tools such as tcpmon or sniff traffic using wireshark. Thanks, but I am trying to enable some debug mode to log all outgoing and incoming messages for certain

Re: logging outgoing HTTP POST message and incoming response message

2009-07-22 Thread scriptlear...@gmail.com
On Jul 22, 1:54 pm, "Diez B. Roggisch" wrote: > You can use proxy-tools such as tcpmon or sniff traffic using wireshark. > > Diez Thanks, but I am trying to enable some debug mode to log all outgoing and incoming messages for certain period of time, and running another proxy-tool is not very idea

Re: logging outgoing HTTP POST message and incoming response message

2009-07-22 Thread Diez B. Roggisch
scriptlear...@gmail.com schrieb: 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 o

logging outgoing HTTP POST message and incoming response message

2009-07-22 Thread scriptlear...@gmail.com
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 (includi