cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: reagrding error in getting complete server response

From: Fahad Ashfaque <me_at_fahadash.com>
Date: Sun, 17 Nov 2013 23:04:39 -0500

Looks like page.len contains unknown or unassigned value. Are you sure your
code is assigning value to page.len and that code is being executed ?

One more thing, I have not seen your full code but I am suspecting your
page.data might contain Unicode string, if it does contain Unicode, then
sprintf() and strlen() will give you the wrong output.

On Sun, Nov 17, 2013 at 9:28 PM, Sunil Chandrasekharan <
sunil.kainat_at_gmail.com> wrote:

> Hi I also added this statement to get the content lenght
>
>
> curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &content_length);
>
> __android_log_print(ANDROID_LOG_DEBUG,
> "LOG_TAG", "\n OUTPUT:content length(%d)======\n", strlen(page.data));
> __android_log_print(ANDROID_LOG_DEBUG,
> "LOG_TAG", "\n OUTPUT:page size(%*ld*)======\n", content_length);
>
>
>
> output :
>
> OUTPUT:content length(12076)======
> OUTPUT:page size(2049356603)======
>
> the page size and the page.data size doesnt match at all...thats why i am
> not getting the comptle response.
>
> regards
> Sunil C
>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>

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