cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curlpp mailing list Archives

Re: [cURLpp] size_t write_function(...) not catching all data?

From: Jean-Philippe Barrette-LaPierre <jean-philippe.barrette-lapierre_at_savoirfairelinux.com>
Date: Mon, 20 Jun 2005 08:08:59 -0400

On June 20, 2005 03:02 am, leighm_at_linuxbandwagon.com wrote:
> hi there
>

Hi!

> Im doing a HTTP POST (upload) in curlPP with the following setup, however
> write_function is only receiving about the first 50 bytes of data.
> Also i noticed "size_t size" is always 1, even tho bufptr may contain
> around 50 bytes of data?
>

You should send your questions to the libcurl's mailing-list.

http://cool.haxx.se/mailman/listinfo/curl-library

> What should write_function return?
>
> size_t write_function(char *bufptr, size_t size, size_t nitems, void
> *userp) { }
>
> ( ... formpost setup earlier.. )
>
> curl_easy_setopt(curl, CURLOPT_HTTPPOST, formpost);
> curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_function);
> res = curl_easy_perform(curl);
>
> Any ideas on where to check? essentially this app is doing a http upload
> then writing the response to disk and opening the default browser to that
> response information
>
> thanks
>
> leigh

-- 
Jean-Philippe Barrette-LaPierre
Savoir-Faire Linux
_______________________________________________
cURLpp mailing list
cURLpp_at_rrette.com
http://www.rrette.com/mailman/listinfo/curlpp
Received on 2005-06-20

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET