commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anthony Lauro <>
Subject Re: How to set proxy username and password?
Date Fri, 06 Jul 2007 14:03:10 GMT

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 <>
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 <> 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:
For additional commands, e-mail:

Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message