goproxy icon indicating copy to clipboard operation
goproxy copied to clipboard

Use onRequest for HTTP(s) connections

Open fortytw2 opened this issue 8 years ago • 3 comments

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

fortytw2 avatar Oct 07 '15 11:10 fortytw2

I got the same problems

skytraveler avatar Jun 01 '17 06:06 skytraveler

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

rahulwa avatar Jun 01 '17 08:06 rahulwa

It still doesnt work for https when i set MITM. Any other solution please.

AnoopPutta avatar Feb 12 '20 14:02 AnoopPutta