hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tarun Ramakrishna <lenk...@gmail.com>
Subject Re: Differing Proxy Configurations with single instance of HttpClient
Date Fri, 18 Mar 2005 16:46:11 GMT
Hi Oleg,

So sorry! I am afraid I missed that method when it was right in front
of my eyes...

Thanks,
Tarun




On Fri, 18 Mar 2005 17:35:10 +0100, Oleg Kalnichevski <olegk@apache.org> wrote:
> Tarun
> 
> The default host configuration can be overridden by passing a custom
> host config to HttpClient#executeMethod as a parameter. For details see
> <http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/HttpClient.html#executeMethod(org.apache.commons.httpclient.HostConfiguration,%20org.apache.commons.httpclient.HttpMethod,%20org.apache.commons.httpclient.HttpState)>
> 
> Hope this helps
> 
> Oleg
> 
> 
> On Fri, Mar 18, 2005 at 09:58:48PM +0530, Tarun Ramakrishna wrote:
> > Hi all,
> >
> > I want to use a single instance of HttpClient with the
> > MultiThreadedHttpConnectionManager for retrieving files from several
> > URL's simultaneously. Now I need to ensure that some of these
> > connections are made through a proxy server whereas others are made
> > directly. (I pick these rules from the windows registry settings)
> >
> > From the API I haven't found a direct way to do this. HttpClient takes
> > a single instance of HostConfiguration using setHostConfiguration when
> > I had expected it to possess an addHostConfiguration() method.
> >
> > From the looks of things I need to provide my own
> > HttpConnectionManager and delegate to
> > MultiThreadedHttpConnectionManager in order to achieve this - but I
> > just wanted to confirm whether this would be the right way to go about
> > doing it.
> >
> > All help appreciated. And thanks for making such a great library! :-)
> >
> > Regards,
> > Tarun
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
> 
>

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


Mime
View raw message