hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: No cookie.. Proxy realm.. limit setFollowRedirects
Date Fri, 13 Feb 2004 21:42:43 GMT
On Fri, 2004-02-13 at 22:19, Emre Sokullu wrote:
> Hi Oleg,
> 
> I have visited the link that you have given to me for the
> "setFollowRedirects()"  problem:
> > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21216
> 
> At this link, I've read that httpclient follows redirections for 100 times
> by default.
> 
> So I've thought that if I knew the instance that determines thi limit, and
> its class in the source code of httpclient, I can change it for me to a
> smaller number.
> 
> So if you know, or if anybody else knows it, can you tell me what instance
> and what class determines the limit of redirections (100 by default)
> 

Here it is

http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java?content-type=text%2Fplain&rev=1.159.2.22

Just look for the following line

private static final int MAX_FORWARDS = 100;

Oleg

> Thanx again for your helps...
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org
> 


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


Mime
View raw message