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 < [email protected]> 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
