You can use HTTP Tunnelling for tunnelling all HTTPS requests through a proxy.
There is a good example at http://java.sun.com/j2se/1.4.1/docs/guide/security/jsse/samples/index.html Look at the socket client with tunnelling. Unfortunately, this involves getting down to the socket level, so you need to code the HTTP headers etc. yourself. Maybe someone else has a better solution that still uses the HttpUrlConnection API. But, this does give you the advantage that you can tunnel through any host you wish - a different host for each web application if you want... Andy -----Original Message----- From: Maxime [mailto:max_sts@;hotmail.com] Sent: 31 October 2002 17:17 To: Tomcat Users List Subject: Re: servlet and proxy Thanks, works great . but do you know another method for only one web application an not all tomcat context ? thks Max ----- Original Message ----- From: "Bodycombe, Andrew" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Thursday, October 31, 2002 11:54 AM Subject: RE: servlet and proxy > You can set these properties when tomcat starts up: > > export CATALINA_OPTS="-Dhttp.proxyHost=wwwww -Dhttp.proxyPort=xxxxx > -Dhttps.proxyHost=yyyyy -Dhttps.ProxyPort=zzzzz" > > Then re-start tomcat. > > > Regards, > Andy > > -----Original Message----- > From: Maxime [mailto:max_sts@;hotmail.com] > Sent: 31 October 2002 16:38 > To: Tomcat Users List > Subject: servlet and proxy > > > Hi > > URL Connections establish by my servlets must pass throw a proxy server > (HTTP/HTTPS) > > a simple > System.getProperties().put("proxySet","true" ); > System.getProperties().put("proxyHost",host); > System.getProperties().put("proxyPort",port); > in a servlet "load-on-startup" doesn't work. > > How can i do that ? > > thanks > > > > > > -- > To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> > For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org> > -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org> -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
