Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adamyordan/postbox
A standalone cli-based http request dumper written in go
https://github.com/adamyordan/postbox
cli dump dumper http requests security security-tools
Last synced: 21 days ago
JSON representation
A standalone cli-based http request dumper written in go
- Host: GitHub
- URL: https://github.com/adamyordan/postbox
- Owner: adamyordan
- License: apache-2.0
- Created: 2018-11-22T10:38:03.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-14T09:12:13.000Z (about 6 years ago)
- Last Synced: 2024-11-07T09:43:46.524Z (2 months ago)
- Topics: cli, dump, dumper, http, requests, security, security-tools
- Language: Go
- Size: 1.75 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Postbox
===
> A standalone cli-based http request dumper written in goInstallation
---
```
go get -u github.com/adamyordan/postbox
```Usage
---
- Run a server to listen to incoming http requests. By default, the server will be listening on port 8000.
```
$ postbox server up --daemon
```
- Try sending request to port 8000
```
$ curl -X PUT -H "Custom-Header: header-value" --data "this is http body data" http://127.0.0.1:8000/some-path
```- List http request received on port 8000
```
$ postbox letter list
[1] 2018-11-22 18:33:18 +0800 +08 (127.0.0.1:53311)
```
- View details of http request received
```
$ postbox letter view 1id : 1
ipaddr: 127.0.0.1:53311
time : 2018-11-22 18:33:18 +0800 +08
PUT /some-path HTTP/1.1
Host: 127.0.0.1:8000
Accept: */*
Content-Length: 22
Content-Type: application/x-www-form-urlencoded
Custom-Header: header-value
User-Agent: curl/7.54.0
this is http body data
```