On 2010/06/15 23:17:13, gagan.goku wrote:
On 2010/06/15 06:52:20, Paul Lindner wrote:
> I think you can do it like this:
>
> ConnRouteParams.setDefaultProxy(params, new HttpHost(host,port,
scheme));
>
This worked perfectly.
Thanks

> (have not tested it, but looks like the proper way to do this.)
>
> If you set this value I believe that you should not instantiate
> the ProxySelectorRoutePlanner later on in the module.
>
>
>
> On Sun, Jun 13, 2010 at 1:42 AM, <mailto:[email protected]>
wrote:
>
> > On 2010/06/10 03:51:25, Paul Lindner wrote:
> >
> >> I believe the functionality you are trying to implement is
already
> >>
> > present in
> >
> >> the RoutePlanner feature  in httpclient.
> >>
> >
> >  Just set ConnRoutePNames.DEFAULT_PROXY with the proxy you want to
use
> >>
> > and be
> >
> >> done with it.
> >>
> >
> > I tried adding this to line 371:
> > httpMethod.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY,
> > basicHttpFetcherProxy)
> > but this did not work
> >
> > Could you show me where to add this 1 line so i can remove the
> > getSelectorForProxy method.
> >
> >
> > http://codereview.appspot.com/1635042/show
> >
>

Please review.

http://codereview.appspot.com/1635042/show

Reply via email to