cURL / Mailing Lists / curl-library / Single Mail

curl-library

Writing verbose infos to file fails on win32 !

From: Stefan Libcurl <libcurl_at_hotmail.com>
Date: Thu, 27 May 2004 15:31:52 +0200

Hi !

I want to write verbose infos to a file.

Here my code:
...
FILE* info;

  res = curl_easy_setopt(curl, CURLOPT_VERBOSE, TRUE);

  if ( (info = fopen("info.txt", "w+")) == NULL )
   printf("info.txt couldn't not open !");
  else
   res = curl_easy_setopt(curl, CURLOPT_STDERR, info);
...

fopen() works, ... the file is created and exists.

After curl_easy_perform(curl) my program crahes.

What's going wrong ?

Thanks ...

_________________________________________________________________
MSN Messenger - sehen, welche Freunde online sind!
http://www.msn.de/messenger Jetzt kostenlos downloaden und mitmachen!
Received on 2004-05-27