goproxy
goproxy copied to clipboard
How to take effect on https
proxy.OnResponse().Do(goproxy.FuncRespHandler(func(resp *http.Response, ctx *goproxy.ProxyCtx) *http.Response {
resp.Body = io.NopCloser(bytes.NewBufferString("Hello, world!"))
return resp
}))
its work on "http://xxxxxxx" didnot work on curl "https://xxxxxxx"
See the Mitm example