cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: post-callback example

From: Patrick Monnerat <Patrick.Monnerat_at_datasphere.ch>
Date: Wed, 20 Apr 2011 15:10:37 +0200

> Jan de Lint wrote:
>> Note the post-callback.c example illustrates posting as-is text
rather
>> than structured form data: the above mentionned example is more
>> appropriate to you IMHO.
> All other examples work as expected, including posting form data.

The post-callback.c example is intended to illustrate the use of a
callback to provide post data to a server, not to format this data or
magically generate appropriate headers.

If you neead a form "factory" formatting data as MIME and generating
headers in accordance, please use example postit2.c.

If you MIME-format the data directly in your application and generate
matching headers yourself without using the curl_httppost structures and
associated API, you may use a callback to provide this data to libcurl,
of course !

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-04-20