curl-users
Re: CURLOPT_WRITEDATA Bug
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 14 Jan 2007 13:04:48 +0100 (CET)
Date: Sun, 14 Jan 2007 13:04:48 +0100 (CET)
On Sun, 14 Jan 2007, Foxbax wrote:
> CURL *curl_handle;
> FILE *fp;
> char *furl = "http://news.sina.com.cn/";
> curl_global_init(CURL_GLOBAL_ALL);
> curl_handle = curl_easy_init();
> if ((fp = fopen("c:\\xxx.rar", "wb")) == NULL)
> return;
> curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (FILE*)fp);
> curl_easy_setopt(curl_handle, CURLOPT_URL, furl);
> curl_easy_perform(curl_handle);
> curl_easy_cleanup(curl_handle);
> fclose(fp);
Now PLEASE take libcurl matters to the libcurl list. I cc'ed this reply over
to that.
Also please state your libcurl version, operating system and more when you
report bugs.
If you're using libcurl as a DLL on windows this crash is not a bug but a
known limitation.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-01-14