hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ortwin Gl├╝ck <ortwin.glu...@nose.ch>
Subject Re: Force redirect in PostMethod
Date Mon, 27 Oct 2003 08:24:46 GMT

Magnus Karlsson wrote:
> First, thanks for the very helpful HttpClient that you have developed.


> A question around the PostMethod class; the javadoc tells me that according to some RFC
it should not be possible to "automatically" follow a redirect when I send posted data to
a certain page.

It means that no POST request will be issued to the redirect target 
location. A web browser requests the redirect target location with a GET 

> However, I need to do just that, send data to an URL through post which is redirecting
me to a page with results from a query.
> How do I handle this? Can I in some way force the PostMethod to allow me to be redirected?
> Best regards,
> Magnus

HttpClient can not change the method automatically. So you will have to 
do it manually. Please take a look at


The problem is tracked here:



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