Downloading a File over HTTP to Your Local Server

bible:~ # wget --03:26:23--

=> 'index.php' Resolving Connecting to[]:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html]

Here, you have an overview of how long it took to download the file and a real-time status indicator notifying you of how long you have left until the file has completely downloaded.

You can also use wget to mirror a web site by passing the recursive (-r) parameter to it. As we are all kind and gentle Internet users, we do not want to recursively follow links in every HTML document we come across, and the default depth to traverse to is five. If you want to recursively get only the first two levels of a site, you use -l 2.

bible:~ # wget -r -l 2

Was this article helpful?

0 0

Post a comment