You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Andrew n marshall <an...@gmail.com> on 2011/04/11 21:57:39 UTC
How To Use RedirectHandler
I need to get the intermediate headers during a redirect, but I can't figure
out how to use RedirectHandler interface. What method takes in its
implementation?
Andrew
Re: How To Use RedirectHandler
Posted by Andrew n marshall <an...@gmail.com>.
What the docs make no reference to (and my specific question below) was what
method takes in a RedirectHandler implementation.
Eventually I found the method on the DefaultHttpClient, but it seems strange
to declare the interface in the client package, with out declare a method to
use it in that package. I know the point is mute, considering it is
deprecated. However, I'm stuck on an older version of HttpClient included
in Android.
On Tue, Apr 12, 2011 at 1:48 AM, Oleg Kalnichevski <ol...@apache.org> wrote:
> On Mon, 2011-04-11 at 12:57 -0700, Andrew n marshall wrote:
> > I need to get the intermediate headers during a redirect, but I can't
> figure
> > out how to use RedirectHandler interface. What method takes in its
> > implementation?
> >
> >
> > Andrew
>
> Andrew,
>
> Please see
>
> http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/client/RedirectHandler.html
>
> RedirectHandler is basically a strategy object that (1) can decide
> whether or not a response message represents a redirect (2) extract the
> redirect location from the response message.
>
> Oleg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>
Re: How To Use RedirectHandler
Posted by Oleg Kalnichevski <ol...@apache.org>.
On Mon, 2011-04-11 at 12:57 -0700, Andrew n marshall wrote:
> I need to get the intermediate headers during a redirect, but I can't figure
> out how to use RedirectHandler interface. What method takes in its
> implementation?
>
>
> Andrew
Andrew,
Please see
http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/client/RedirectHandler.html
RedirectHandler is basically a strategy object that (1) can decide
whether or not a response message represents a redirect (2) extract the
redirect location from the response message.
Oleg
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org