8

I am using Jetty's ConnectHandler to proxy SSL via CONNECT.

Now I'd like to configure the ConnectHandler to forward requests to another proxy which will handle the CONNECT for me.

Is there a way to configure the ConnectHandler to do this? I checked the ConnectHandler source code but couldn't find a way to do this.

Jochen
  • 1,853
  • 3
  • 20
  • 28
  • Post the current code that you have used also to your question – Tarun Lalwani Apr 17 '18 at 13:07
  • @TarunLalwani This is currently my code: https://github.com/testingbot/Testingbot-Tunnel/blob/java8/src/main/java/com/testingbot/tunnel/proxy/CustomConnectHandler.java Here we receive a CONNECT request and handle it. But now I also want to be able to forward it to another proxy. – Jochen Apr 17 '18 at 14:39
  • See if this helps? https://stackoverflow.com/questions/9357585/creating-a-java-proxy-server-that-accepts-https – Tarun Lalwani Apr 20 '18 at 17:47

0 Answers0