When I type the following:
http://www.archlinux.org/packages/extra/x86_64/enca/download/
wget is downloading index.html instead of the correct file which is: enca-1.13-2-x86_64.pkg.tar.xz
When I use a windows machine and navigate to the same location, it correctly prompts me to download the tarball package.
Hmm, uh, works for me! I'm using wget 1.11.4 on a CentOS5 box, fwiw.
If I do a a curl, I get:
So the redirection is correct, at least on the mirror I'm hitting.
Try instead:
wget --trust-server-names http://www.archlinux.org/packages/extra/x86_64/enca/download/
"--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."