cURL / Mailing Lists / curl-library / Single Mail


FTP: Upload a string

From: pcworld <>
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:
Received on 2011-03-04