cURL / Mailing Lists / curl-library / Single Mail

curl-library

Invalid content length info

From: Bumsik Yoon <bumsik.yoon_at_gmail.com>
Date: Sat, 6 Jun 2009 17:29:28 +0900

Hello,

I found a problem when I connect to
www.google.com
then
curl_easy_getinfo( CURLINFO_CONTENT_LENGTH_DOWNLOAD );
returns invalid info.

www.google.com was redirected to
www.google.co.kr using
curl_easy_setopt ( CURLOPT_FOLLOWLOCATION, 1).

Before redirect, http header had Content-Length: 221
After redirect, it had no Content-Length field (chunked encoding)
but curl_easy_getinfo returned previous value 221.

Isn't it wrong?

Regards
Bumsik
Received on 2009-06-06