Authentication through Proxy Server
1 posts in topic
Flat View  Flat View

Posted By:   Sumit_Datta
Posted On:   Thursday, April 4, 2002 01:18 AM


My client is behind a proxy server which requires a UserId/Password for authentication. Even though I have set up the following properties, it does not work:

-Dhttp.proxySet=true -Dhttp.proxyHost= -Dhttp.proxyPort= -Dhttp.proxyUser= -Dhttp.proxyPassword=

Am I missing something? My requirement is to pass the proxy userid and password as a system property while running the java client program.

S Datta

Re: Authentication through Proxy Server

Posted By:   Stephen_Ostermiller  
Posted On:   Friday, April 5, 2002 07:05 AM

Microsoft proxy servers use the NTLM authentication scheme. I no of no java libraries that will do this for you.

Otherwise, most proxies use basic authentication. I don't know if URLConnection does this for you or not by setting http.proxyPassword. If not you can easily do it yourself by following the Base64 example. Just change Authorization to Proxy-Authorization.

About | Sitemap | Contact