cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Patch for 301/302 redirect after post

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 15 Jul 2008 16:46:07 -0700

On Mon, Jul 14, 2008 at 05:11:32PM +0200, Martin Drasar wrote:
> Hi curl devs,
> I have created a patch that lets user to chose a way to handle redirect
> after 301 or 302.
> CURLOPT_POST301 is changed from bool to long
> CURLOPT_POST302 (long) is added
> These two options set the behavior in such way:
> -1: error is reported after post followed by 301/302
> 0: post is resent
> 1: post is changed to get

One thought just came to me--is the new "-1" option even needed? How is it
different from disabling redirects altogether and letting the application
check the return code for 301 or 302 itself?

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-07-16