| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Re: Patch for 301/302 redirect after post
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 4 Aug 2008 12:59:40 +0200 (CEST)
On Mon, 4 Aug 2008, Martin Drasar wrote:
>> You can easily detect 301/302 codes yourself when having it activated and
Sure, just use the HEADERFUNCTION and parse the headers you get passed to it.
> I understand that you don't want to fill the code with overly specific
I would even prefer to proceed like this:
1 - CURLOPT_POST301 gets renamed to CURLOPT_POSTREDIR (while of course still
2 - CURLOPT_POSTREDIR then takes the original options 0 to act as default and
3 - Then we create a few nice defines for these magic values so that we don't
What do you say?
-- / daniel.haxx.seReceived on 2008-08-04 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info