2

I am now using Wget and I download Cygwin as a terminal. Also, I use http://djangoproject.com/download/1.3.1/tarball/ as a test link to download files.

The install process runs smoothly, but when I try to download the file from the above link, an error occurs as I can not find the file on my computer, I can only find a file named "index.html". But the file shoud be a .rar file. Here is the screenshot of the problem. Thank you for your help.

The main code is wget http://djangoproject.com/download/1.3.1/tarball/

Screenshot of the problem

| improve this question | | | | |
0

The screenshot (you can copy & paste code into this site, use the "Code Sample" toolbar button) says "301 Moved Permanently" a few times, but then downloads the file, but without using an output name option or --trust-server-names it gets saved to index.html - that's your downloaded file.

Use --trust-server-names to, well, use the filename the server tells you.

| improve this answer | | | | |
  • Thanks a lot. I am new to wget and your solution works well. – Yang Yang Mar 13 '17 at 15:54
  • Welcome :) It can be pretty complicated, can download an entire site or be used in scripts. But for just downloading 1 or 2 files a web browser is usually easier – Xen2050 Mar 13 '17 at 16:02
  • Thanks a lot. This example is only a test. Could you take a look at my new question at superuser.com/questions/1188349/… ? Thank you for your help. – Yang Yang Mar 13 '17 at 20:47
  • No problem, these sites actually like upvotes (up-arrow link on the left side, near the check-mark) as a way of saying "thanks" & "that's useful", so feel free to upvote :-) They almost don't like just saying "thanks", it's kind of weird & almost impolite that way, but I guess it keeps the site more focused on questions & answers & useful info. FYI, I spotted something to change in the other question & posted an answer there. – Xen2050 Mar 13 '17 at 21:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.