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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]