cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH] Addition of trailer headers in HTTP requests generated by libcurl

From: Guenter <lists_at_gknw.net>
Date: Thu, 21 Feb 2013 09:42:21 +0100

Hi,
Am 21.02.2013 09:23, schrieb Chrysovaladis Datsios:
> Following are a small documentation& an example code using it.
did you test your sample?
Even if it will compile and run (which I doubt) its wrong ...

> int main(void)
> {
...
> /* Read callback function */
> size_t read_callback(void *ptr, size_t size, size_t nmemb, void *stream) {
...

like with your trailer callback the read callback has to be defined
outside of main() ...

Gün.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-02-21