isBlacklisted
func is being called but the ReqConditionFunc
is not, I have also tried that without the wrapper
Hello, my name is Liora and I am currently hunting open source projects for company NeuraLegion (www.neuralegion.com)
We just launched a free annual subscription for open source projects for our AIAST tool NexPloit.
If you are interested, please, reach us on opensource@neuralegion.com!
Thank you for your time and consideration! If you have any questions, please do not hesitate to contact us!
Best,
Hi
I am trying to cache request using elazarl/goproxy. If request is not cached, it needs to be routed through an external proxy.
proxy.OnRequest().DoFunc(func(req *http.Request,ctx *goproxy.ProxyCtx)(*http.Request,*http.Response) {
if alreadyCached {
return req, getCachedResponse(req)
}
//Here I want to route req via external proxy, I tried the following
transport := &http.Transport{Proxy: http.ProxyURL(proxyUrl), TLSClientConfig: &tls.Config{InsecureSkipVerify: true},}
proxtResponse, err := client.Do(proxyReq)
//cache the response
return req, response
}
But some sites are not loading properly on using the client.Do method.
Any suggestion to route http.Request via proxy.