N
N
nalezhitiy2018-02-09 17:55:41
Web servers
nalezhitiy, 2018-02-09 17:55:41

How does wget redownload a file?

Good day!
I thought about the question "How does wget re-download a file?", if the connection to the server was lost, then the connection appeared, then according to the logic of http (s) we re-establish the connection and get the requested file from the beginning. Wget remembers how many bytes it has downloaded, and starts skipping newly received bytes until new ones are received, those that have not yet been received.
Do I understand correctly that "re-downloading" is just the name of a re-download (trying to download until we download) or not?
Is it possible to configure the server (Nginx, Apache) so that it would request a file from the moment of the break? Or is it necessary to write your own server?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Peter, 2018-02-09
@petermzg

For re-downloading, you need the server to support the http header Range
About support for Range by the nginx server is written here

V
vreitech, 2018-02-09
@fzfx

> and get the requested file first
here you have two errors. the HTTP protocol allows you to download from anywhere, not just from the beginning.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question