Added 5.5 the CURLOPT_FILE problem on win32, DeYoung provided it!

This commit is contained in:
Daniel Stenberg 2001-01-22 08:42:00 +00:00
parent 9afab85105
commit 41084e57ca
1 changed files with 11 additions and 1 deletions

View File

@ -1,4 +1,4 @@
Updated: January 15, 2001 (http://curl.haxx.se/docs/faq.shtml) Updated: January 22, 2001 (http://curl.haxx.se/docs/faq.shtml)
_ _ ____ _ _ _ ____ _
___| | | | _ \| | ___| | | | _ \| |
/ __| | | | |_) | | / __| | | | |_) | |
@ -52,6 +52,7 @@ FAQ
5.2 How can I receive all data into a large memory chunk? 5.2 How can I receive all data into a large memory chunk?
5.3 How do I fetch multiple files with libcurl? 5.3 How do I fetch multiple files with libcurl?
5.4 Does libcurl do Winsock initing on win32 systems? 5.4 Does libcurl do Winsock initing on win32 systems?
5.5 Does CURLOPT_FILE work on win32 ?
6. License Issues 6. License Issues
6.1 I have a GPL program, can I use the libcurl library? 6.1 I have a GPL program, can I use the libcurl library?
@ -472,6 +473,15 @@ FAQ
use several different libraries and parts, and there's no reason for every use several different libraries and parts, and there's no reason for every
single library to do this. single library to do this.
5.5 Does CURLOPT_FILE work on win32 ?
Yes, but you cannot open a FILE * and pass the pointer to a DLL and have
that DLL use the FILE *. You must use CURLOPT_WRITEFUNCTION as well to set a
function that writes the file, even if that simply writes the data to the
specified FILE*.
(provided by Joel DeYoung)
6. License Issues 6. License Issues
NOTE: This section is now updated to concern curl 7.5.2 or later! NOTE: This section is now updated to concern curl 7.5.2 or later!