Hello,
I am making use of the proxy capabilities with Jetty in the following manner:

        SelectChannelConnector connector = new SelectChannelConnector();
        connector.setPort(port);
        server.addConnector(connector);
        HandlerCollection handlers = new HandlerCollection();
        server.setHandler(handlers);
        ServletContextHandler context = new ServletContextHandler(handlers, 
"/", ServletContextHandler.SESSIONS);
        ServletHolder proxyServlet = new ServletHolder(testClassServlet);
        proxyServlet.setInitParameters(props);
        context.addServlet(proxyServlet, "/*");

        // A CONNECT handler allows SSL connections but does not support an 
upstream proxy
        ConnectHandler proxy = new ConnectHandler();
        handlers.addHandler(proxy);


The problem I currently have is that this will work so long as you have a 
direct connection to the internet.  If you are working with an upstream HTTP 
proxy, the HTTP insecure content will work fine and be handled by my servlet 
but anything HTTPS which will be handled by ConnectHandler is not.  Is there a 
way to configure the ConnectHandler to support an upstream proxy?




Thanks,
Zach Calvert


_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to