[Tutor] Monitoring HTTP connections?

Kent Johnson kent37 at tds.net
Sun Sep 28 13:39:53 CEST 2008

On Sat, Sep 27, 2008 at 11:20 PM, xbmuncher <xboxmuncher at gmail.com> wrote:
> How can I monitor the HTTP connections my windows xp system makes with
> python?
> I'm running a program that makes requests to websites over HTTP, I know this
> by using a program like wireshark. I'd basically like to have a python
> program know when this other program makes these requests and be able to
> save the request data, so I know what it is requesting (to what website).
> Kind of like a mini- wireshark like program but only for HTTP requests.

Why not just set up wireshark with a filter for HTTP requests?

You could also use a proxy server to log the traffic; several Python
proxy servers are listed here:


More information about the Tutor mailing list