如何获取 新浪网 的Content-Length???高手帮忙啊,急急急
新封神演义 2006-08-22 02:04:44 新浪的请求头:
GET / HTTP/1.1
Accept: */*
Accept-Language: zh-cn
Accept-Encoding: gzip, deflate
If-Modified-Since: Tue, 22 Aug 2006 05:57:16 GMT; length=204198
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
Host: www.sina.com.cn
Connection: Keep-Alive
然后返回头:
HTTP/1.0 200 OK
Date: Tue, 22 Aug 2006 06:01:12 GMT
Server: Apache/2.0.54 (Unix)
Last-Modified: Tue, 22 Aug 2006 06:00:21 GMT
ETag: "e206c9-30392-f11a8740"
Accept-Ranges: bytes
X-Powered-By: mod_xlayout_jh/0.0.1vhs.markII.remix
Cache-Control: max-age=60
Expires: Tue, 22 Aug 2006 06:02:12 GMT
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Type: text/html
Age: 39
X-Cache: HIT from xa-177.sina.com.cn
Connection: close
返回头中没有Content-Length,我怎样才能获取网页的长度呢????我是用的SOCKET编程