curl-library
RE: Question About Get File Size?
Date: Tue, 21 Feb 2012 08:17:46 -0800
You can't until you've received the response completely, at that point you should know how many bytes arrived.
-V
----------------------------------------
> From: lixiaohui9219_at_126.com
> To: curl-library_at_cool.haxx.se
> Subject: Question About Get File Size?
> Date: Tue, 21 Feb 2012 19:56:06 +0800
>
> If the server does not response with "Content-Length", The result of file size I got is 0.
> How I can get the file size using Libcurl ( Http 1.1, Content-type:application/octel-binary ) ?
>
>
> Thanks!
>
>
> -------------------------------------------------------------------
> 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 2012-02-21