472,146 Members | 1,198 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,146 software developers and data experts.

ISO simple debugging sniffer for HTTP

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.


Sep 16 '08 #1
0 1007

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Gavin Bauer | last post: by
5 posts views Thread by David Baker | last post: by
2 posts views Thread by Laurent Laporte | last post: by
2 posts views Thread by kali | last post: by
4 posts views Thread by cHacker | last post: by
4 posts views Thread by chazzy69 | last post: by
reply views Thread by Saiars | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.