Re: [go-nuts] Use CONNECT method to proxies for HTTP requests

2020-01-28 Thread Edouard Buschini
I solved my problem. The offending line what in the request.go file for the net/http package: 558 host := cleanHost(r.Host) 559 if host == "" { 560 if r.URL == nil { 561 return errMissingHost 562 } 563 host = cleanHost(r.URL.Host) 564 } ... 571 ruri := r.URL.Reque

[go-nuts] Use CONNECT method to proxies for HTTP requests

2020-01-27 Thread Edouard Buschini
Hi all! Asking for the help of the community because I haven't been able to find the answer on my own. I'm writing an http fuzzer in go and was implementing a proxy options from the cli. My use case is that I want all the requests to be sent to the proxy when the flag is set. No matter if it's