commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anthony Lauro <lauroanth...@yahoo.com>
Subject Re: How to set proxy username and password?
Date Fri, 06 Jul 2007 14:03:10 GMT
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 <bindulbhowmik@gmail.com>
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 <lauroanthony@yahoo.com> 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: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org








       
____________________________________________________________________________________
Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get
online.
http://smallbusiness.yahoo.com/webhosting 
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message