Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 91079 invoked from network); 11 Jun 2007 06:55:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jun 2007 06:55:15 -0000 Received: (qmail 23948 invoked by uid 500); 11 Jun 2007 06:55:19 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 23656 invoked by uid 500); 11 Jun 2007 06:55:17 -0000 Mailing-List: contact httpclient-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: "HttpClient User Discussion" Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-user@jakarta.apache.org Received: (qmail 23641 invoked by uid 99); 11 Jun 2007 06:55:17 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Jun 2007 23:55:17 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=HTML_00_10,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of feng.a.jiang@gmail.com designates 64.233.162.233 as permitted sender) Received: from [64.233.162.233] (HELO nz-out-0506.google.com) (64.233.162.233) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Jun 2007 23:55:13 -0700 Received: by nz-out-0506.google.com with SMTP id 14so995749nzn for ; Sun, 10 Jun 2007 23:54:52 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=iYgMLpqM8LE6/nJ/p1kMLoIewE/HY0u7gxJn2Rdmdn01BGUCyj5OFQbIMcH9VkaSi7BbPwF04cz9s+A0niRKLoqlbqbocMrDaMbtV6nSKo0KxxKuO1LBB9Cy/V+Up5qejY0rvK1NUqcqWiAIaKFoj8k03WrF444u4V28hAiXT/Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=VA5GJgHr3rPA4SHP7X2YCnjb299o7JmEvFLnC2mcvIxhrmF0DYUHrm0VJ4xuN+aTH6fKFPJLwdrT3/uBTIZcYN0tihBP226tdlbnhSNzumOjaY5aODkqVzvA4Do3NdhJ4yEFvwKsjg288vaKdEj8xbwqNeeG3l7dPXZC7dkq5/Y= Received: by 10.114.170.1 with SMTP id s1mr5238503wae.1181544892507; Sun, 10 Jun 2007 23:54:52 -0700 (PDT) Received: by 10.114.191.5 with HTTP; Sun, 10 Jun 2007 23:54:52 -0700 (PDT) Message-ID: <6b8917290706102354u457870eay484493c0aef18dfe@mail.gmail.com> Date: Mon, 11 Jun 2007 14:54:52 +0800 From: "Feng Jiang" To: httpclient-user@jakarta.apache.org Subject: how to limit the redirect count if I enable following redirect? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_85885_31560117.1181544892379" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_85885_31560117.1181544892379 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 ------=_Part_85885_31560117.1181544892379--