cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: question regarding CURLOPT_WRITEFUNCTION & CURLOPT_WRITEDATA

From: Jan <haihappn_at_gmail.com>
Date: Wed, 22 Oct 2008 16:34:05 +0200

2008/10/22 Linus Nielsen Feltzing <linus_at_haxx.se>

> Jan wrote:
>
>> You are right. with fwrite it works, but not with fputs..
>>
>
> Of course it doesn't work with fputs(). You can't use fputs() for binary
> data, since it only writes up to the next null byte. Use fwrite() instead.
>
> Linus

yes, sorry. that was my fault. now it works perfect!
thank you guys for your help!

--
Jan
Received on 2008-10-22