Re: receive chunked data from http server via curl_easy_perform( )
Date: Mon, 9 Feb 2004 15:54:59 -0800
On Mon, Feb 09, 2004 at 03:45:48PM -0800, Jerry G. Chiuan wrote:
> Hi All,
> When we use curl_easy_perform( ) to get chunked data from http server, is it
> possible to know the *total chunked data's length* before callback function
> (CURLOPT_WRITEFUNCTION) starts to be invoked?
> ( ps: in this case, "Transfer-Encoding: chunked" header field is used in the
> header of http response from server)
> Or, I can't know the length of total chunked data until libcurl finishes
> parsing it and curl_easy_perform( ) gets returned
The whole point of chunked data is that it is for those occasions when the
server doesn't know the total length of the data (e.g. when it is generated
dynamically). If the server doesn't know, then you can't know either.
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2004-02-10