cURL / Mailing Lists / curl-library / Single Mail

curl-library

FTP: Upload a string

From: pcworld <0188801_at_googlemail.com>
Date: Fri, 04 Mar 2011 16:19:18 +0100

Hello everyone,

I want to upload a (C++) string to a server without having to write the
string into a file first.
I know I have to use the CURLOPT_READFUNCTION option, but I don't know
how to do this with a string.

Could anyone provide me an example for a readfunction which works with a
string (not a file) or give me some suggestions?

Thank you very much!
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-03-04