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

Pleasure...


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 request.


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


http://jakarta.apache.org/commons/httpclient/redirects.html


The problem is tracked here: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21584

HTH

Odi


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to