Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2DE388C08 for ; Mon, 8 Aug 2011 08:02:10 +0000 (UTC) Received: (qmail 95563 invoked by uid 500); 8 Aug 2011 08:02:07 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 94745 invoked by uid 500); 8 Aug 2011 08:01:57 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 94522 invoked by uid 99); 8 Aug 2011 08:01:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2011 08:01:51 +0000 X-ASF-Spam-Status: No, hits=-2000.8 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2011 08:01:49 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 04C0AB115F for ; Mon, 8 Aug 2011 08:01:29 +0000 (UTC) Date: Mon, 8 Aug 2011 08:01:29 +0000 (UTC) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Message-ID: <1753827889.15937.1312790489016.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <632728000.15499.1312776087280.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (HTTPCLIENT-1114) "response.getStatusLine().getStatusCode()" always be 200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleg Kalnichevski resolved HTTPCLIENT-1114. ------------------------------------------- Resolution: Invalid HttpClient handles redirects automatically unless configured otherwise. Oleg > "response.getStatusLine().getStatusCode()" always be 200 > --------------------------------------------------------- > > Key: HTTPCLIENT-1114 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1114 > Project: HttpComponents HttpClient > Issue Type: Bug > Reporter: conanca > > I used HttpWatch to trace a url , the result returned is "301"; I used Httpclient for coding :"response.getStatusLine().getStatusCode()", It returned 200 -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org