cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Patch for 301/302 redirect after post

From: Martin Drasar <drasar_at_optimsys.cz>
Date: Tue, 15 Jul 2008 09:52:24 +0200

Dan Fandrich napsal(a):
> On Mon, Jul 14, 2008 at 08:42:09PM +0200, Patrick Monnerat wrote:
>> Martin Drasar wrote:
>>> CURLOPT_POST301 is changed from bool to long
>>> I hope the patch doesn't screw something else up :o)
>> Changing an existing parameter's type breaks the ABI !!!
>>
>> That is: applying your patch to libcurl makes programs compiled with
>> another version incompatible :-(
>>
>> 'better use another option in this case
>
> In this case, the change should be benign. The parameter is passed as a long
> in any case, and as long as the existing behaviour is kept for the 0 and 1
> values, all should be fine.
>
>>>> Dan

Ups... it seems that I have swapped the current behavior for 0 and 1. :-)

Martin

-- 
   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-07-15