4 ms·
You want to use the Range header. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Ra.
by charcircuit 5y ago
You want to use the Range header.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Ra...
- _benj 5y agoso that's how `wget -c` works! the more you know :)
- eatonphil 5y agoSince flags are hard to google, what does `wget -c` do?
- loeg 5y agoResume partial download.
- eatonphil 5y agoGotcha, thanks
- elsherbini 5y agoMy favorite way to find out what flags do is explainshell: e.g. https://explainshell.com/explain?cmd=wget+-c https://explainshell.com/explain?cmd=wget+-c
- eatonphil 5y agoWow that's a cool idea! I'll have to try it out next time.
- eatonphil 5y agoPoint in this project's code where you can see this happen [0]. Also interesting to note that it's not just HTTP it supports but other protocols I haven't heard of like DASH, HDP, HLS [1]. [0] https://github.com/subhra74/xdm/blob/master/app/src/main/java/xdman/downloaders/http/HttpChannel.java#L123 https://github.com/subhra74/xdm/blob/master/app/src/main/jav... [1] https://github.com/subhra74/xdm/tree/master/app/src/main/java/xdman/downloaders https://github.com/subhra74/xdm/tree/master/app/src/main/jav...
- charcircuit 5y agoThose protocols are on top of HTTP so it makes sense they support it too.