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 Feng Jiang <fe...@gmail.com> on 2007/06/11 08:54:52 UTC
how to limit the redirect count if I enable following redirect?
Hi all,
As we know we can enable/disable following redirect by
setFollowingRedirect() in HttpMethodBase. But how to limit the redirect
count during a fetching process?
I found the HttpClientParams.MAX_REDIRECTS attribute may affect the redirect
count. But how to set it? I cannot find a explicitly interface to set this
value.
Best regards,
Feng
Re: how to limit the redirect count if I enable following redirect?
Posted by Oleg Kalnichevski <ol...@apache.org>.
On Mon, 2007-06-11 at 14:54 +0800, Feng Jiang wrote:
> Hi all,
>
> As we know we can enable/disable following redirect by
> setFollowingRedirect() in HttpMethodBase. But how to limit the redirect
> count during a fetching process?
>
> I found the HttpClientParams.MAX_REDIRECTS attribute may affect the redirect
> count. But how to set it? I cannot find a explicitly interface to set this
> value.
>
> Best regards,
>
> Feng
Hi Feng
Please take a look at the HttpClient preferences API
http://jakarta.apache.org/commons/httpclient/preference-api.html
Oleg
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org