curl-library
Re: A HTTPPOST question
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 1 Sep 2008 10:51:16 +0200 (CEST)
Date: Mon, 1 Sep 2008 10:51:16 +0200 (CEST)
On Sun, 31 Aug 2008, Serge Skorokhodov wrote:
>> You can free the entire post with curl_formfree() after the
>> curl_easy_perform() call. But you need to make sure that you either set
>> another request method or set a new formpost in the handle before you call
>> curl_easy_perform() again on the same handle.
>>
> Thanks, it is. I've looked into the code briefly and it seems that
> curl_easy_reset should be sufficient. Is it? Or is it better to set GET
> method?
You can do either way. curl_easy_reset() will reset all options back to
default state, but you only _need_ to set the method back to GET.
-- / daniel.haxx.seReceived on 2008-09-01