curl - Partial download with wget -
i see curl supports partial downloads
-r, --range range retrieve bytes within range example
curl -r 0-99 http://foo.com/bar.mp4 however, can wget accomplish similar?
unfortunately wget doesn't have feature(at least gnu wget 1.10.2 (red hat modified)), annoying. can send range header http request, doesn't work.
wget "http://www.example.com" -c --header="range: bytes=0-99" it returns
http request sent, awaiting response... 206 partial content giving up. it seemed wget had proper response, strangely, didn't finish it. example verbose mode output:
http request sent, awaiting response... http/1.0 206 partial content accept-ranges: bytes cache-control: max-age=604800 content-range: bytes 0-99/1270 content-type: text/html date: fri, 24 jan 2014 08:35:18 gmt etag: "359670651" expires: fri, 31 jan 2014 08:35:18 gmt last-modified: fri, 09 aug 2013 23:54:35 gmt server: ecs (ftw/fba9) x-cache: hit content-length: 100 connection: keep-alive giving up.
Comments
Post a Comment