cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Martin Drasar <drasar_at_optimsys.cz>
Date: Thu, 26 Jun 2008 14:34:09 +0200

Daniel Stenberg napsal(a):
> 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!
>

OK... will send it soon

-- 
   Martin Drasar, Developer / Analyst
   OptimSys, s.r.o.
   drasar_at_optimsys.cz
   Tel: +420 541 143 065
   Fax: +420 541 143 066
   http://www.optimsys.cz
Received on 2008-06-26