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


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


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:

> Thanks,
> Tony


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. 

Reply via email to