B
Bruno Vignola
Hi all,
I hope this question is not too much OT, but this problem is driving
me crazy ...
I have a JSP application running on Apache Tomcat 6.0 which should
perform
http requests through the proxy of my company; how can I set my proxy
address,
user and password in tomcat ? I made a lot of guess, setting the
http.proxyHost etc.
variables into the config file, on the JVM command line, inside the
java code ... but
the proxy always blocks my requests:
java.io.IOException: Unable to tunnel through proxy. Proxy returns
"HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires
authorization to fulfill the request. Access to the Web Proxy service
is denied. )"
sun.net.www.protocol.http.HttpURLConnection.doTunneling(Unknown
Source)
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown
Source)
....
sniffing the network packets with Ethereal, it seems that my WS does
not correctly
reply to the 407 proxy request, setting some GET fields to wrong
values e.g. the domain
is always wrong, the password is sent in the a wrong place etc.
can anyone help me ?
thank you in advance
Bruno
I hope this question is not too much OT, but this problem is driving
me crazy ...
I have a JSP application running on Apache Tomcat 6.0 which should
perform
http requests through the proxy of my company; how can I set my proxy
address,
user and password in tomcat ? I made a lot of guess, setting the
http.proxyHost etc.
variables into the config file, on the JVM command line, inside the
java code ... but
the proxy always blocks my requests:
java.io.IOException: Unable to tunnel through proxy. Proxy returns
"HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires
authorization to fulfill the request. Access to the Web Proxy service
is denied. )"
sun.net.www.protocol.http.HttpURLConnection.doTunneling(Unknown
Source)
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown
Source)
....
sniffing the network packets with Ethereal, it seems that my WS does
not correctly
reply to the 407 proxy request, setting some GET fields to wrong
values e.g. the domain
is always wrong, the password is sent in the a wrong place etc.
can anyone help me ?
thank you in advance
Bruno