[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] wget and filename redirection
From: |
Sharuzzaman Ahmat Raslan |
Subject: |
[Bug-wget] wget and filename redirection |
Date: |
Fri, 10 Feb 2012 10:50:22 +0800 |
Hi,
A newbie question.
Does wget have the feature to follow filename redirection?
Meaning of filename redirection is, a website
http://example.com/download/latest will always redirect to the latest file
URL, such as http://example.com/download/apps-1.2.3.tar.gz , but wget will
save the file as "latest" .
Is there a way to save the file according to the name it redirects to? If
the feature is not available, I would really appreciate if it could be
implemented.
Thanks.
Reference:
http://www.linuxquestions.org/questions/linux-software-2/wget-and-redirection-345815/
My own example:
address@hidden:~# wget http://codeigniter.com/download.php
--2012-02-10 10:26:51-- http://codeigniter.com/download.php
Resolving codeigniter.com (codeigniter.com)... 216.250.166.124
Connecting to codeigniter.com (codeigniter.com)|216.250.166.124|:80...
connected.
HTTP request sent, awaiting response... 302 Found
Location: download_files/reactor/CodeIgniter_2.1.0.zip [following]
--2012-02-10 10:26:52--
http://codeigniter.com/download_files/reactor/CodeIgniter_2.1.0.zip
Reusing existing connection to codeigniter.com:80.
HTTP request sent, awaiting response... 200 OK
Length: 2313430 (2.2M) [application/zip]
Saving to: `download.php'
100%[==============================================================================================================================>]
2,313,430 63.9K/s in 71s
2012-02-10 10:28:03 (31.8 KB/s) - `download.php' saved [2313430/2313430]
--
Sharuzzaman Ahmat Raslan
- [Bug-wget] wget and filename redirection,
Sharuzzaman Ahmat Raslan <=