Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm just trying to download this, but it always redirect to the main page and in the end just download the index.html file, not the file I'm trying to download:

Do you guys know how to download it correctly? I used --user-agent="firefox+linux, IE+windows, (anything you can think of)" but it doesn't work.

This is the output, is the same with --user-agent enabled:

jaheaga@jaheaga:~$ wget / 19:40:07--
Conectando con[]:80... conectado.
Petición HTTP enviada, esperando respuesta... 302 Found
Ubicación: [siguiente]
--2012-04-13 19:40:08--
Reutilizando la conexión con
Petición HTTP enviada, esperando respuesta... 302 Moved Temporarily
Ubicación: [siguiente]
--2012-04-13 19:40:08--
Reutilizando la conexión con
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: no especificado [text/html]
Grabando a: “”

    [ <=>                                                                            ]     46.913       234K/s   en 0,2s    

2012-04-13 19:40:09 (234 KB/s) - “” guardado [46913]
share|improve this question
What errors do you get? – Nifle Apr 13 '12 at 23:31
The link is not working at all. At least, for me. How about uploading it to somewhere? And use the direct link from there? – Shiki Apr 14 '12 at 0:00
it gives me the main page, but go to and you can check it, weird behavior of that link – Jaheaga Apr 14 '12 at 0:18
BTW: I am curious. What's the reason for downloading the file with wget instead of inside the browser? I mean you definitely used a browser to find the download url :) – zpea Apr 14 '12 at 0:30
duty noted, is a batch script I use to fix really broken windows computers. – Jaheaga Apr 14 '12 at 0:38

The user-agent is a good start, but not sufficient in that case. Another HTTP header value that is often checked for is 'Referer' [sic!]. See Wikipedia: HTTP Referer.

wget has a --referer=url option to specify the referring page. Analysing the traffic for a successful download in Wireshark shows that it used following request from a testing system of mine:

GET /files/setups/ HTTP/1.1
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:11.0) Gecko/20100101 Firefox/11.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive

For this case it even seems you don't need to fake an User-Agent.

wget --referer=

Does the trick.

share|improve this answer
definitely works. thanks – Jaheaga Apr 14 '12 at 0:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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