Return-Path: Delivered-To: apmail-jakarta-httpclient-dev-archive@www.apache.org Received: (qmail 55965 invoked from network); 6 Jan 2005 18:33:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 6 Jan 2005 18:33:43 -0000 Received: (qmail 7458 invoked by uid 500); 6 Jan 2005 18:33:42 -0000 Delivered-To: apmail-jakarta-httpclient-dev-archive@jakarta.apache.org Received: (qmail 7435 invoked by uid 500); 6 Jan 2005 18:33:42 -0000 Mailing-List: contact httpclient-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "HttpClient Project" Reply-To: "HttpClient Project" Delivered-To: mailing list httpclient-dev@jakarta.apache.org Received: (qmail 7421 invoked by uid 99); 6 Jan 2005 18:33:42 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from Unknown (HELO ann-mailsweep-1.telecomsys.com) (205.244.233.171) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 06 Jan 2005 10:33:40 -0800 Received: from owm-exc-1.telecomsys.com (unverified [10.230.0.18]) by ann-mailsweep-1.telecomsys.com (Clearswift SMTPRS 5.0.4) with ESMTP id for ; Thu, 6 Jan 2005 13:34:22 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C4F41E.1B76F28C" Subject: Getting 200 code when 301 is executed Date: Thu, 6 Jan 2005 13:32:42 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Getting 200 code when 301 is executed Thread-Index: AcT0HegIuuhxQmY6R9qkODaznOb50g== From: "Gregory Gershman" To: X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C4F41E.1B76F28C Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable I'm upgrading from version 2.X to 3.X, looking to get rid of some of my redirect code. I've noticed that when I hit a URL that returns a 301, the new 3.1 client automatically redirects to the new Location, and fetches it successfully. This is good, but the status code returned is a 200, not a 301; I have no way of finding out if I should permanently change the URL in my database. Is there access to the earlier request responses? I would think that in the case of a 301, the response code should not be 200... =20 Greg Gershman ------_=_NextPart_001_01C4F41E.1B76F28C--