goproxy
goproxy copied to clipboard
Use onRequest for HTTP(s) connections
Hey! I'm trying to use onRequest to edit/return special responses in a lot of cases with goproxy
, but it seems any request directly to an https://
URL doesn't use this, instead does it's own thing? Anything that first goes through http://
and is redirected works just fine though
I got the same problems
You need to do man-in-the-middle attack for https first, so that goproxy can read/intercept the traffic. Something like this. https://github.com/rahulwa/camouflage/blob/master/proxy/proxy.go#L116-L120
It still doesnt work for https when i set MITM. Any other solution please.