[go-nuts] Re: HTTPS proxy issue using CONNECT method

2022-12-06 Thread Mauro Monteiro
Hello Graham Thanks a lot for your explanation ! I really appreciate. Mauro On Tuesday, December 6, 2022 at 7:58:01 AM UTC gbarr wrote: > Hi Mauro, > > In your curl examples the CONNECT method was used in both cases because > you forced it to with the --proxytunnel option. If you run those s

[go-nuts] Re: HTTPS proxy issue using CONNECT method

2022-12-05 Thread gbarr
Hi Mauro, In your curl examples the CONNECT method was used in both cases because you forced it to with the --proxytunnel option. If you run those same commands without that option then you will find that curl will operate the same as Go and will only use the CONNECT method when the target is H

[go-nuts] Re: HTTPS proxy issue using CONNECT method

2022-12-05 Thread Mauro Monteiro
Hello Graham, Would not make more sense to deal with both cases HTTPS and HTTP in the same way? The transport could send the CONNECT method to establish the TCP tunnel and then send the request after that. Of course, if the target request is based on HTTPS, the TLS handshake would start otherwi

[go-nuts] Re: HTTPS proxy issue using CONNECT method

2022-12-05 Thread gbarr
On Saturday, December 3, 2022 at 4:46:54 PM UTC maumon...@gmail.com wrote: > Hello all, > > I have been facing an issue when I try to create a HTTP client which needs > to connect through a HTTPS proxy using the HTTP CONNEC method. I know that > it can be achieved setting my own http.Transport o