Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to download htttp://www.nsbop.sux/download.php?id=333 , it redirects to htttp://www.nsbop.sux/staff/emoubi.tgz
When I execute:
wget -c htttp://www.nsbop.sux/download.php?id=333 it downloads the file staff/emoubi.tgz but with name download.php?id=333
How can I make wget to follow the redirections and save the file with his actual file name (emoubi.tgz) ?
Also I wanna ask can I download with links without opening his user interface ? Something like:
links --download htttp://www.nsbop.sux/download.php?id=333
I do not know the real file name of download.php?id=333. That's the problem, wget must redirect to the actual file and save it with it's actual name (emoubi.tgz in my example)
Right but with the -o option, you don't need to know the name, you just make one you like (-o is to specify the output name).
I don't think it supports PHP redirection, but I'm not sure. I don't see anything in the man, info, or FAQ about it.
Originally posted by AgentDenim Right but with the -o option, you don't need to know the name, you just make one you like (-o is to specify the output name).
Exactly. I don't want to specify a file name because I don't know it I'm talking about 10 000+ files.
‘--trust-server-names’
If this is set to on, on a redirect the last component of the redirection URL will be used as the local file name. By default it is used the last component in the original URL.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.