This small program allows users to view traffic sent by fossa-cli
to the FOSSA service.
For more advanced usage, run with the -h
flag to see help output.
- Install Go: https://go.dev/doc/install
- Run
go run main.go
. - Run
fossa analyze -e 'http://localhost:3000'
in a different terminal. - Observe
fossa-cli
traffic written to the terminal.
Go to the latest release and download the appropriate binary for your local system.
Each discrete API call is denoted by the line 🚀 Forward '{path}' to '{destination}'
:
✨ Serving on ':3000', forwarding to 'https://app.fossa.com'
🚀 Forward '/api/cli/organization' to 'https://app.fossa.com/api/cli/organization'
GET /api/cli/organization HTTP/1.1
Host: localhost:3000
User-Agent: Go-http-client/1.1
Accept: application/json
Accept-Encoding: gzip
Authorization: Bearer <snip>
If a body is attached to the request, it's listed after a blank line:
🚀 Forward '/api/proxy/sherlock/scans/bde59fdc-923b-4429-a871-45fbb24bc2ba/files' to 'https://app.fossa.com/api/proxy/sherlock/scans/bde59fdc-923b-4429-a871-45fbb24bc2ba/files'
POST /api/proxy/sherlock/scans/bde59fdc-923b-4429-a871-45fbb24bc2ba/files HTTP/1.1
Host: localhost:3000
User-Agent: Go-http-client/1.1
Content-Length: 261729
Accept-Encoding: gzip
Authorization: Bearer <snip>
Content-Type: application/json
{"ScanData":{"...