Bindul,

Thank you for the post. This is the code we are intending to use. It looks like 
the HttpClientFactory will take the 
ProxyAuthenticator and grab the username and password from it:

StaticUserAuthenticator auth = new StaticUserAuthenticator(proxyHost, 
proxyUsername, proxyPassword);
HttpFileSystemConfigBuilder hfscb = HttpFileSystemConfigBuilder.getInstance();
hfscb.setProxyAuthenticator(fso, auth); //fso is a FileSystemOptions object

Tony

----- Original Message ----
From: Bindul Bhowmik <[EMAIL PROTECTED]>
To: Jakarta Commons Users List <commons-user@jakarta.apache.org>
Sent: Thursday, July 5, 2007 7:26:13 PM
Subject: Re: How to set proxy username and password?

Anthony,

On 7/5/07, Anthony Lauro <[EMAIL PROTECTED]> wrote:
> What's the right way to set a password and username for a proxy server when 
> making http requests in the current release? We are
> considering using the ProxyAuthenticator, but just want to make sure
> before we head down a wrong road.

Hope this will help:
http://jakarta.apache.org/commons/httpclient/authentication.html#Proxy_Authentication

> Thanks,
>
> Tony

Regards,
Bindul

-- 
Bindul Bhowmik
MindTree Consulting Ltd.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








       
____________________________________________________________________________________
Building a website is a piece of cake. Yahoo! Small Business gives you all the 
tools to get online.
http://smallbusiness.yahoo.com/webhosting 

Reply via email to