-
Notifications
You must be signed in to change notification settings - Fork 652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Proxy-over-SSL #2348
Comments
Only partial. #2349 is about the connection from proxy to the target system. This issue is about the connection between the client and the proxy.
[A] can be HTTP, HTTPs, SOCKS (and potentially others). Currently HTTP and SOCKS are supported, HTTPS not. This is what #2348 is about. [B] can be HTTP GET/POST/... and CONNECT. With "CONNECT", the proxy passes a raw TCP connection from the target to the client and does not care about the content. This is commonly used to proxy HTTPs connections but netty uses it for everything. This is what #2349 is about. I was a bit surprised about the incomplete proxy support in netty. For my project I switched back to apache httpclient async which fully supports all the proxy semantics. Looking forward to see it in netty so that I can switch to Spring Flux/Webclient. |
@micw you may instead use Jetty ReactiveStreams HttpClient with WebClient, it supports https proxy. I was facing the same problem trying to setup a https proxy and use it with WebClient, netty not supporting it was almost a blocker for my use-case. A sample code to get your started
Would be good to have this supported in Netty soon. |
Hello @ashish-b-choudhary-db, I have a proxy that does not support CONNECT, I am jetty as you've mentioned, but, I did not find how to disable CONNECT tunneling. Thank you. |
@violetagg are there any plans to work on that? Do you see a work-around for people that are using netty? |
We are not working on this one. I marked this with |
Motivation
I have a network which is reachable by a proxy only. The proxy itself is an apache2 configured as proxy. The proxy is exposed via https. The ressources within the network are reachable by http.
This setting works easily with curl:
Desired solution
This should also be possible with netty. I have seen some potentially related issues which are closed without obvious reason (#2178, #2165).
The text was updated successfully, but these errors were encountered: