<div dir="ltr"><div class="Ih2E3d">>>Why not just set up wireshark with a filter for HTTP requests?<br></div>Because
I want to use the data from the HTTP requests in my python program, so
it needs to be a way I can do it natively within my python program, so
I can use the data it retrieves...<div><span id="q_11cab97bd6604010_3" class="WQ9l9c">- Show quoted text -</span></div><br><br><div class="gmail_quote">On Sun, Sep 28, 2008 at 7:39 AM, Kent Johnson <span dir="ltr"><<a href="mailto:kent37@tds.net">kent37@tds.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">On Sat, Sep 27, 2008 at 11:20 PM, xbmuncher <<a href="mailto:xboxmuncher@gmail.com">xboxmuncher@gmail.com</a>> wrote:<br>
> How can I monitor the HTTP connections my windows xp system makes with<br>
> python?<br>
><br>
> I'm running a program that makes requests to websites over HTTP, I know this<br>
> by using a program like wireshark. I'd basically like to have a python<br>
> program know when this other program makes these requests and be able to<br>
> save the request data, so I know what it is requesting (to what website).<br>
> Kind of like a mini- wireshark like program but only for HTTP requests.<br>
<br>
</div></div>Why not just set up wireshark with a filter for HTTP requests?<br>
<a href="http://www.wireshark.org/docs/wsug_html_chunked/ChCapCaptureFilterSection.html" target="_blank">http://www.wireshark.org/docs/wsug_html_chunked/ChCapCaptureFilterSection.html</a><br>
<br>
You could also use a proxy server to log the traffic; several Python<br>
proxy servers are listed here:<br>
<a href="http://www.xhaus.com/alan/python/proxies.html" target="_blank">http://www.xhaus.com/alan/python/proxies.html</a><br>
<font color="#888888"><br>
Kent<br>
</font></blockquote></div><br></div>