cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

RE: [mem curl]

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 6 Nov 2009 10:20:27 +0100 (CET)

On Fri, 6 Nov 2009, Xu, Qiang (FXSGSC) wrote:

>> CURLOPT_WRITEDATA points to whatever data you want to point to. libcurl
>> doesn't touch it in any way.
>
> Shouldn't it be pointed to some file pointer for the output purpose?

If you want. Your write callback set with CURLOPT_WRITEFUNCTION is the only
one that uses that data so it can be used for anything you like.

If you *don't* use CURLOPT_WRITEFUNCTION however, you MUST make
CURLOPT_WRITEDATA be a FILE * to a valid file handle if you set the option.
But I would assume that very few applications use that default functionality.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-11-06

These mail archives are generated by hypermail.

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET