hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kalnichevski, Oleg" <oleg.kalnichev...@bearingpoint.com>
Subject RE: redirects not allowed for PostMethod
Date Tue, 18 Mar 2003 08:23:33 GMT
We do have to split monolithic HttpMethod into HttpRequest/HttpResponse pair first. That should
address the problem, as well as make the overall architecture much cleaner


-----Original Message-----
From: Ortwin Glück [mailto:ortwin.glueck@nose.ch]
Sent: Dienstag, 18. März 2003 09:16
To: Commons HttpClient Project
Subject: Re: redirects not allowed for PostMethod

Jeffrey Dever wrote:
> I'd say that a post redirect converted to a get is good behaviour to add 
> as part of the redirect overhaul as discussed for httpclient 3.0

The problem of this scenario is:
- you tell HttpClient to execute a POST
- it is redirected and executes a GET automatically
- but the application only has a reference to the PostMethod instance 
and not to the GetMethod instance. So you would not be able get *any* 
data back (not even a status code)!

To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org

View raw message