goproxy icon indicating copy to clipboard operation
goproxy copied to clipboard

How to take effect on https

Open wantg opened this issue 7 months ago • 2 comments

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"

wantg avatar May 28 '25 17:05 wantg

See the Mitm example

elazarl avatar May 29 '25 05:05 elazarl