Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 72712 invoked from network); 20 Jan 2005 05:45:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 20 Jan 2005 05:45:30 -0000 Received: (qmail 32454 invoked by uid 500); 20 Jan 2005 05:45:29 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 32431 invoked by uid 500); 20 Jan 2005 05:45:29 -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 32416 invoked by uid 99); 20 Jan 2005 05:45:29 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of juliusdavies@cucbc.com designates 64.114.5.49 as permitted sender) Received: from c2ksmtpg.cucbc.com (HELO c2ksmtpg.cucbc.com) (64.114.5.49) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 19 Jan 2005 21:45:27 -0800 Received: from c2kmail1.cucbc.com ([172.17.68.166]) by c2ksmtpg.cucbc.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 19 Jan 2005 21:45:26 -0800 Received: c2kmail1.cucbc.com 172.17.68.166 from 172.18.0.4 172.18.0.4 via HTTP with MS-WebStorage 6.0.6249 Received: from haplo by c2kmail1.cucbc.com; 19 Jan 2005 22:48:12 -0800 Subject: Re: Post parameter arrays !! From: Julius Davies Reply-To: juliusdavies@cucbc.com To: Eric Chow Cc: HttpClient User Discussion In-Reply-To: References: <07300F9224B6F54AB156D87576C5F736024A514A@c2kmail1.cucbc.com> <1106157906.8682.6.camel@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: CUCBC Date: Wed, 19 Jan 2005 22:48:12 -0800 Message-Id: <1106203692.7003.8.camel@haplo> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 X-OriginalArrivalTime: 20 Jan 2005 05:45:26.0052 (UTC) FILETIME=[3DAC4E40:01C4FEB3] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 302 is a redirect. HTTP/1.1 302 Moved Temporarily Location: /new/location You need to read the "Location" header included in the reply and initiate a GET request to that URL. Assuming all your session cookies are included in your 2nd request (httpclient usually does that automatically), everything should work. HttpClient doesn't support "Post" redirects, especially not with the 2nd request being a "Get" the way most browsers implement it. yours, Julius On Thu, 2005-01-20 at 09:15 +0800, Eric Chow wrote: > Any idea on the following form, it just return the status code 302 !!! > The following is the HTML form and my code: > --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-user-help@jakarta.apache.org