cURL / Mailing Lists / curl-library / Single Mail


Re: Default (mis)behavior when doing POST and 301 or 302 returns

From: Daniel Stenberg <>
Date: Thu, 26 Jun 2008 13:11:47 +0200 (CEST)

On Thu, 26 Jun 2008, Martin Drasar wrote:

> I would like to ask if there was a way to change behavior of libcurl when
> POST request is redirected with 301 or 302. Current change from POST to GET
> can be very unwanted (in my application I am trying to comunicate with SOAP
> server and GET method is useless for me - I would rather see error message).

CURLOPT_POST301 perhaps?

Received on 2008-06-26