2

I want to get some file size. Some people recommend wget --spider. However, when I run it on some links, like http://autos.cn.yahoo.com/ then it said Length: unspecified [text/html]. Is there way to solve this or I could use another way to get file size without actually downloading it? Thank you!

4

1 に答える 1

0

Content-Lengthこれは、サーバーがヘッダーを送信しないか、不正な形式で送信されているために発生します。--ignore-length次のオプションを使用すると、これを無視できます。

$ wget --ignore-length http://autos.cn.yahoo.com/ 
于 2013-07-11T22:15:49.357 に答える