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

how to install in linux ? Shoud i install go envirnment first ?

Example below demonstrates issue i have with dynamically set proxy. If i use `addr1` - that is proxy without basic auth - everything works as expected. On the other hand...

*ProxyHttpServer.handleHttps() currently writes a HTTP/1.0 200 OK back to the client connection before ConnectHijack's Hijack function is invoked. [RFC 2817](https://tools.ietf.org/html/rfc2817#section-5.3) States: ``` 5.3 Establishing a Tunnel with CONNECT Any successful...

Need updated ca.pem and raw cert/key to 2048 bytes for compatibility with go1.13

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,...

I am trying to workaround https://github.com/chromedp/chromedp/issues/190 by launching a goproxy server that would forward requests to another proxy. ``` pxy := goproxy.NewProxyHttpServer() pxy.Tr.Proxy = http.ProxyURL(proxyurl) go func() { err :=...

i have try this below but not worked: proxy.OnRequest().DoFunc(func(req *http.Request, ctx *goproxy.ProxyCtx) (request *http.Request, response *http.Response) { proxy.Tr = &http.Transport{Proxy: func(request *http.Request) (url *url.URL, e error) { ip := GetNewProxy()...

Now when I get RemoteAddr use resp.Request.RemoteAddr,I get 127.0.0.1:53246,How can I get the real remote ip address?

I would like to log the bytes transferred for all connections, whether HTTP or HTTPS. For HTTP, I can write an OnResponse() handler that does this. But it seems like...

The [`Connect*` constants](https://godoc.org/github.com/elazarl/goproxy#pkg-constants) aren't documented. Expected them to be. Workaround: Had to resort to [source code](https://github.com/elazarl/goproxy/blob/master/https.go#L92) to try to understand what they do.