hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julius Davies <juliusdav...@cucbc.com>
Subject Re: Post parameter arrays !!
Date Thu, 20 Jan 2005 06:48:12 GMT
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.



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

View raw message