cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Adding custom entries to post?

From: Robert Bielik <robert.bielik_at_xponaut.se>
Date: Wed, 02 Jul 2008 17:45:45 +0200

Hej Daniel,

Tack för senast!

Daniel Stenberg skrev:
> No, you just add a part to the upload that contains the md5sum and you'd
> use a name your receiving end would look for. No particular new options
> are needed fro that.

Ok, for someone like me who isn't all that libcurl-savvy, should I just add an
entry like:

curl_formadd(&formpost, &lastptr,
        CURLFORM_COPYNAME, "MD5CHECKSUM",
        CURLFORM_COPYCONTENTS, md5checksum.c_str(),
        CURLFORM_END);

??

TIA
/R
Received on 2008-07-02