cURL / Mailing Lists / curl-library / Single Mail

curl-library

Multiple calls to curl_easy_perform()

From: Mikołaj Rydzewski <mikolajr_at_becomo.com>
Date: Thu, 19 Feb 2004 15:15:57 +0100

Hello,

Manual says that it is possible to call curl_easy_perform() multiply
times while using the same handle. But the following code doesn't work
for me:

    ...
    cur_easy_setopt(h, CURLOPT_URL, url1);
    curl_easy_perform(h);
    ...
    cur_easy_setopt(h, CURLOPT_URL, url2);
    curl_easy_perform(h);
    ...

Second call returns the same page as the first one. Does libcurl clear
all options after making perform()?

--
Mikolaj Rydzewski
Becomo S.A.
Received on 2004-02-19