cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Help - retriveal of header & body info

From: Julien Chaffraix <julien.chaffraix_at_gmail.com>
Date: Thu, 31 Dec 2009 13:26:18 +0100

Hi,

>       retCode =curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION,
> write_data);

You are overriding the default write function here.

> I am not able to retrieve the header & body information using the above
> piece of code. I didn’t get any error message using CURLcode.
>
> I got the content of head.out as

[snipped the header information]

> & the  empty information in body.out file.

Do you get something in body.out if you remove the above line in your code?

Best regards,
Julien
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-12-31