Use "wget" to download just about any file on the console. For example to download a web page you can type:
The tool also works for anonymous ftp- e.g.
Now if you want to add a time out setting, there are two options- dns-timeout and connect-timeout. The former is the maximum # of seconds before wget stops trying to resolve url/address you are trying to download, whereas the latter is a total length of time "timer" of sorts that will abort whenever it exceeds time. An example:
wget --dns-timeout=8 --connect-timeout=10 -t2 http://www.coolcomputing.com/
BTW the "-t2" tells wget to retry in case of timeout/error, for a total of 2 times.
If you are trying to download a secure HTTPS page, use the --no-check-certificate option to avoid errors. For instance:
wget --no-check-certificate https://www.google.com/
Here is a video tutorial + examples of wget usage under Linux: