IIRC, HttpClient has its own configuration for setting the proxy.

http://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/HostConfiguration.html
http://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/HttpState.html#setProxyCredentials(org.apache.commons.httpclient.auth.AuthScope,%20org.apache.commons.httpclient.Credentials)

-Tim

Steve Cameron wrote:
Hello

I want to make use of a proxy jsp that takes a POST request and sends it on
another server, receives the request and passes it back to the browser.

The jsp is making use of the org.apache.commons.httpclient.HttpClient class.

However my Tomcat instance cannot retrieve the request from the second
server as it must send the request via a Proxy which requires
authentication.

I have tried adding the following options to the JAVA_OPTS in the
catalina.bat file.

-Dhttp.proxyHost=<proxy> -Dhttp.proxyPort=8080 -DproxyUser=xxx
-DproxyPassword=xxxxxx


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to