Golang
Capture HTTP/HTTPS from Golang application (net/http, fasthttp, resty, gorequest, req, grequests) with Proxyman
Last updated
Capture HTTP/HTTPS from Golang application (net/http, fasthttp, resty, gorequest, req, grequests) with Proxyman
Last updated
Proxyman macOS v5.17.0 or later can capture HTTP/HTTPS traffic from Golang with 1-click.
1-click solution: No need to manually set HTTP Proxy config or trust the self-signed certificate.
✅ Support many Go Network Libraries: net/http, fasthttp, resty, gorequest, req, grequests
Open Proxyman -> Setup Menu -> Automatic Setup
Select your favorite Terminal -> Click on the "Open New Terminal" button
Accept the Apple Script permission prompt if needed
The New Terminal app is launched -> You can start your Golang Backend Server, or Run scripts => Proxyman automatically captures all traffic.
For example:
Proxyman captures all internal HTTP/HTTPS from go, including net/http
Proxyman can't capture any HTTP/HTTPS traffic from the Golang Server.
The reason is that some network libraries (such as net/http) won't respect the System HTTP Proxy, so no traffic goes through the Proxyman app.
Config Proxy to Proxyman, by default, it's at IP = localhost, port 9090
Tell the Transport to trust Proxyman self-signed certificate. Otherwise, you will get an SSL Error because net/http rejects.
Go Example Code: