Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > ISO simple debugging sniffer for HTTP

Thread Tools

ISO simple debugging sniffer for HTTP
Posts: n/a
Hi everybody,

I'm looking for a very simple HTTP debugging sniffer in Python--
hopefully 200 lines of less--that allows me to write simple methods to
inspect requests and responses. It would ideally work like this:

sniffer = SimpleHttpDebuggingSniffer(actual_host_address,
sniffer.listening_port = SOME_PORT_ON_MY_DESKTOP
sniffer.inbound_inspector = some_method_i_write
sniffer.outbound_inspector = some_other_method_i_write

I would launch it from a Linux desktop terminal and use it help debug
a Java application I'm maintaining that uses an opaque library to hit
an opaque service. I can configure the client app to connect to the
sniffer, and apart from inspecting packets, I just want it to pass
data along to the real server. I'm not using any complicated part of
the HTTP protocol--it's mostly simple request, simple response, but
the payloads are not plain text, so I need some Python code to make
sense of them.

I've googled a bit, and I've come up with a lot of noise, so I'm
hoping some one can point me in the direction of some simple code that
they have confidence in, which is free and all that good stuff.



Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTTP SOAP/HTTP GET/HTTP POST milan_9211 Software 0 01-10-2011 02:10 PM
HTTP Sniffer extension Alain Viguier Firefox 0 09-17-2003 07:00 AM