cURL / Mailing Lists / curl-library / Single Mail


Multiple calls to curl_easy_perform()

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


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);
    cur_easy_setopt(h, CURLOPT_URL, url2);

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