hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Handling proxies and modifying request header fields
Date Mon, 24 Mar 2008 19:31:33 GMT

On Thu, 2008-03-20 at 10:31 +0530, Biju P wrote:
> Hi,
> 
> I am writing an Applet. The applet must be accessed by users from 
> different domains and networks which are controlled by proxies and 
> firewalls.
> 
> My concerns are,
> i) The applet should be able to send requests to external websites thru 
> the proxy (if any proxy exists).
> ii) The applet should be able to modify the request header fields, such as 
> User-agent field.
> 
> When I try using normal URLConnection from java.io package, the applet is 
> able to inherit the proxy settings from the browser and send the requests 
> thru that proxy. But, I am getting response code 403 for some of the 
> sites. 
> 
> Can anybody tell me, is this possible by using Apache HttpClient?.

No, it is not. You have configure HttpClient manually either using
system properties or ProxySelector class if running on JRE 5.0 or newer.

Oleg

>  And if 
> so, please specify the version.
> 
> It would be a great help, if somebody could advise on this.
> 
> Biju P M
> Mailto: biju.p@tcs.com
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain 
> confidential or privileged information. If you are 
> not the intended recipient, any dissemination, use, 
> review, distribution, printing or copying of the 
> information contained in this e-mail message 
> and/or attachments to it are strictly prohibited. If 
> you have received this communication in error, 
> please notify us by reply e-mail or telephone and 
> immediately and permanently delete the message 
> and any attachments. Thank you
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message