HTTP
状态码
206
206是部分内容的状态码。下载视频的时候首次观察到:
$ wget -c 'http://60.5.254.18/flv.vodfile.m1905.com/201111282049/a3981c94640b109b4906e6812ec84fb5/movie/guSqlfsSJeTTS45m.flv'
--2011-11-28 21:30:40-- http://60.5.254.18/flv.vodfile.m1905.com/201111282049/a3981c94640b109b4906e6812ec84fb5/movie/guSqlfsSJeTTS45m.flv
Connecting to 60.5.254.18:80... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 177083638 (169M), 157914358 (151M) remaining [video/x-flv]
Saving to: `guSqlfsSJeTTS45m.flv'
100%[++++=======================================>] 177,083,638 62.2K/s in 32m 58s
2011-11-28 22:03:38 (78.0 KB/s) - `guSqlfsSJeTTS45m.flv' saved [177083638/177083638]
这是因为下载前这个文件已经有了一点,wget进行了续传,发送的请求Header里面指定了Range,151M就是要下载的部分。服务端必须支持续传才行。
虽然服务器说文件大小是169M(177083638),但得到的文件实际大小是178MiB(186786856 B):
-rw-rw-r-- 1 tux tux 186786856 2011-08-10 13:30 guSqlfsSJeTTS45m.flv
可能是服务端的设置有问题。