HTTP Snitch - The Byte Size HTTP Request Debugger

Akram MECHERI
Akram MECHERI
Technical Leader | Blogger | Freelancer

As a passionate technical leader, I am skilled in FullStack Java development and have a strong background in DevOps, Cloud, and Kubernetes. I have a track record of delivering high-quality software, and I am always seeking to improve my knowledge and skills through continuing education and hands-on experience.

Get in Touch
HTTP Snitch - The Byte Size HTTP Request Debugger

What is HTTP-SNITCH ?

HTTP-SNITCH is a mini HTTP server that prints out every requests that it receives.

✤ ✤ ✤ ✤ ✤

When you need to use HTTP-SNITCH

You can use HTTP-SNITCH to debug any HTTP Client,
Send any valid HTTP request (GET, POST, PUT, PATCH, DELETE, OPTIONS, HEAD, CONNECT, TRACE, QUERY) to HTTP-SNITCH, and it will print out the received request with its headers and body included.

✤ ✤ ✤ ✤ ✤

Can HTTP-SNITCH be used to debug Reverse-Proxies ?

HTTP-SNITCH is great to debug various HTTP clients and reverse proxies just forward your requests to the listening HTTP-SNITCH server, and it will print out the received requests.

✤ ✤ ✤ ✤ ✤

How to install HTTP-SNITCH ?

1- Make sure to have python3 and pip3 installed.
2- Install the colorama python package pip3 install colorama
3- Download the file snitch.py in the official HTTP-SNITCH repository

✤ ✤ ✤ ✤ ✤

How to run HTTP-SNITCH ?

In order to run HTTP-SNITCH open a new Terminal and run the following command:

python3 snitch.py

This will run HTTP-SNITCH on port 8080, if you want to run it on a different port just specify it like bellow:

python3 snitch.py 9090
✤ ✤ ✤ ✤ ✤

Example of HTTP-SNITCH output

Running HTTP-SNITCH on port 8080 in a GitHub Workspace instance and sending a GET request to it will print out the following output:

The console output of HTTP-SNITCH
✤ ✤ ✤ ✤ ✤

Demo

View the demo video on Youtube

✤ ✤ ✤ ✤ ✤

Support my work 🐶

If you like my content and/or you love dogs, you might want to buy me a ☕

"Buy Me A Coffee"
;