Skip to content

rahulhaque/dumpon

Repository files navigation

Dumpon 🗑️ Go HTTP Request Dump Server

Dumpon is a simple HTTP request dump server written in Go. It listens for requests and prints them in details such as request URL, method, headers, parameters, body and file uploads to the console in a nicer format.

Notes

  • I made this to have a portable dump server with me, usable anywhere at anytime, for debugging requests.
  • This is my first project in Go lang so suggestion and pull requests are welcome from experts.

Installation

You can download the binary from release page or build on your own from source. Ensure that Go^1.22.6 is installed and properly configured on your system to build from source.

Usage

# See available options
./dumpon -h

# Run the server
# Default port `-p 80`
# Max memory `-m 10`
./dumpon

Test Sending Request

# Simple GET request
curl http://localhost:80

# Simple POST request with body
curl -X POST http://localhost:80 -d "name=dumpon"

# Simple POST request with file upload
curl -X POST http://localhost:80 -F "avatar=@path/to/avatar.png"

Request Print Format

See the attached screenshot.

Changelog

Please see CHANGELOG for more information what has changed recently.

Security

If you discover any security related issues, please email rahulhaque07@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.