goproxy icon indicating copy to clipboard operation
goproxy copied to clipboard

An HTTP proxy library for Go

Results 143 goproxy issues
Sort by recently updated
recently updated
newest added

Hi! I get code from https://github.com/elazarl/goproxy/blob/0581fc3aee2d07555835bed1a876aca196a4a511/examples/cascadeproxy/main.go and add Mitm handler to `middleProxy` ```go middleProxy.OnRequest(goproxy.ReqHostMatches(regexp.MustCompile("^.*$"))).HandleConnect(goproxy.AlwaysMitm) ``` Now all requests failed: Cannot read TLS response from mitm'd server proxyconnect tcp: tls: first...

Solved, thx anyway.

I am encountering Cascading proxy stopped working after a while, how to do troubleshoot?

https://github.com/elazarl/goproxy/blob/0581fc3aee2d07555835bed1a876aca196a4a511/https.go#L267 This line here has inadequate checking, should be: `` if _, err := io.Copy(chunked, resp.Body); err != nil && "EOF" != err.Error() { ``

I am trying to build a small man-in-the-middle proxy tool for inspecting gRPC client/server traffic. So I am using this goproxy to almost build a reverse-proxy server. What I'm seeing...

Hello @elazarl, thanks for your great work! In both eavesdropper and transparent examples, there are lines showing the usage of `HijackConnect`: https://github.com/elazarl/goproxy/blob/ec485169a1ebac8c90a2f06d00227966db8128bd/examples/goproxy-eavesdropper/main.go#L26-L50 https://github.com/elazarl/goproxy/blob/ec485169a1ebac8c90a2f06d00227966db8128bd/examples/goproxy-transparent/transparent.go#L47-L70 `HijackConnect` was introduced in eb7fa0f750cff2a9f14ba93cdb08cab02ecd869d to fix...

For a minimum goproxy example: ```go func main() { proxy := goproxy.NewProxyHttpServer() proxy.Verbose = true log.Fatal(http.ListenAndServe(":8080", proxy)) } ``` `curl http://www.baidu.com/ -k -v -x "http://127.0.0.1:8080"` returns 200; `curl http://www.baidu.com:80/ -k...

Would you be interested in including HAR file generation into goproxy? There is a fork from several years ago that includes it but it seems fairly out of date.

I am on Chrome 81 (windows 10), also tried this on Chrome 43 (old npapi I have for work) both of them react the same. I tried setting the proxy...

I was hoping to construct a chain of filters by doing something like this: ```go proxy := goproxy.NewProxyHttpServer() proxy.OnRequest().Do(filter1) proxy.OnRequest().Do(filter2) ``` However, I've noticed filters get passed the original HTTP...