473,387 Members | 1,304 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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,
actual_host_port)
sniffer.listening_port = SOME_PORT_ON_MY_DESKTOP
sniffer.inbound_inspector = some_method_i_write
sniffer.outbound_inspector = some_other_method_i_write
sniffer.run()

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.

Thanks,

Steve
Sep 16 '08 #1
0 1051

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Gavin Bauer | last post by:
My DOS window (running in windows ME) closes the second it finishes running my programs. As you can imagine, this makes it hard to see the results. I've gotten in the habit of putting...
12
by: AMC | last post by:
Hi, I need to code an asp based browser sniffer. It needs to detect if a browser can support css and if not redirect to a different site. Does anyone have sample code that does this? thx
5
by: David Baker | last post by:
Hi all I am very new to ASP.Net. I am trying to create a sniffer for our program. We want our users to click our sniffer and hopefully the sniffer will check their computer against our...
2
by: Laurent Laporte | last post by:
hello, I'm using cvs standard module under Python 2.3 / 2.4 to read a CSV file. The file is opened in binary mode, so I keep the end of line terminator. It appears that the csv.Sniffer force...
2
by: kali | last post by:
this is kali a new member to this forum.. iam an undergrad studd and wrking with a opacket sniffer to capture data transmitted using a hardware... the file saved in the sniffer is a binary file...
4
by: cHacker | last post by:
Hello, there are some ICQ sniffers available on Internet, i am curious about how to get ICQ talk(text)? someone has any idea to get the icq talks(texts)? thanks
4
by: chazzy69 | last post by:
Hello i am a little new c++, i know most of the basics now and im interest in making a sniffer for my router to see any and all connections made to the router from the outside world, my router does...
3
by: haribuvanesh | last post by:
Im working with a packet sniffer program and i get following exception on compilation. Plz help me out.... Exception in thread "main" java.lang.Error: Unresolved compilation problem: The method...
6
kenobewan
by: kenobewan | last post by:
Congratulations! You are one of the few who realise that over 80% of errors are simple and easy to fix. It is important to realise this as it can save a lot of time. Time that could be wasted making...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.