cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE:Cant Get the File size from HTTP Server

From: Saidus Bounderra <bsaidus_at_gmail.com>
Date: Mon, 13 Apr 2009 07:16:39 +0000

Ive resolved the problem :
instead declaring the pointer to double, we must declare a double
// double *cl;
 double cl;
 char *cc ;
 c = curl_easy_getinfo(cu, CURLINFO_CONTENT_LENGTH_DOWNLOAD , &cl);
 printf("the File size is : %f", cl );
 curl_easy_cleanup(cu) ;
}
Received on 2009-04-13