Well,
I always send the parameters to the final url when posting data, and this is
not the final.
Besides, when I set method.setFollowRedirects(true) and execute this method,
i receive an error:
java.lang.IllegalArgumentException: Entity enclosing requests cannot be
redirected without user intervention
and a statuscode 500.
ideas?
Thanks,
Marcelo
----- Original Message -----
From: "Roland Weber" <[EMAIL PROTECTED]>
To: "HttpClient User Discussion" <[email protected]>
Sent: Monday, February 19, 2007 3:52 PM
Subject: Re: Problem posting login information (ajax)
Hello Marcelo,
But this url has a redirect!
What is the problem? HttpClient typically follows redirects
automatically if configured to do that:
http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/HttpMethod.html#setFollowRedirects(boolean)
There are few cases where HttpClient is not allowed to follow
the redirect without user interaction. In that case, your
application will get a 3xx response and you can take the
target URL from the "Location" header in the response.
hope that helps,
Roland
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]