You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Mark Lybarger <ml...@gmail.com> on 2005/11/02 19:59:59 UTC
httpclient - posting data following redirects.
Hi,
I'm trying to send data using a PostMethod in the commons-httpclient
package. The url the post is for is recieving a redirect from the
server. I've tried to set the followRedirects on the PostMethod, but
that seems to be throwing an exception.
Is there any way I can follow redirects on an http post?
Thanks!
~mark
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: httpclient - posting data following redirects.
Posted by Oleg Kalnichevski <ol...@apache.org>.
On Wed, Nov 02, 2005 at 01:59:59PM -0500, Mark Lybarger wrote:
> Hi,
>
> I'm trying to send data using a PostMethod in the commons-httpclient
> package. The url the post is for is recieving a redirect from the
> server. I've tried to set the followRedirects on the PostMethod, but
> that seems to be throwing an exception.
>
> Is there any way I can follow redirects on an http post?
>
> Thanks!
> ~mark
>
Mark,
Please consult the HttpClient redirect guide for details on POST method
redirect handling:
http://jakarta.apache.org/commons/httpclient/redirects.html
Oleg
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org