Downloading a File over HTTP to Your Local Server

bible:~ # wget www.palmcoder.net/index.php --03:26:23-- http://www.palmcoder.net/index.php

=> 'index.php' Resolving www.palmcoder.net... 212.13.208.115 Connecting to www.palmcoder.net[212.13.208.115]: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 www.palmcoder.net

Was this article helpful?

0 0

Post a comment