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: Xu, Qiang (FXSGSC) <Qiang.Xu_at_fujixerox.com>
Date: Fri, 6 Nov 2009 17:27:02 +0800

> -----Original Message-----
> From: curl-library-bounces_at_cool.haxx.se
> [mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of
> Daniel Stenberg
> Sent: Friday, November 06, 2009 5:20 PM
> To: libcurl development
> Subject: RE: [mem curl]
>
> 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.

Ah, you are right. Anyway, CURLOPT_WRITEDATA is used for the downloaded data/file from the server. And how to use the data is up to the application itself. That's when a callback func associated with CURLOPT_WRITEFUNCTION comes into the scenario.
 
> 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.

This is the case for my SFTP application, which only cares about upload/download. :-)

> But I would assume that very few applications use that
> default functionality.

Thanks,
Xu Qiang
-------------------------------------------------------------------
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