cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 26 Jun 2008 14:24:33 +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?
>>
>
> This would enable re-POST for 301, but not for 302. That's why I need either
> error message or something like CURLOPT_POST302 as well.

I see. Well I'll welcome patches!

-- 
  / daniel.haxx.se
Received on 2008-06-26