1
votes

From time to time I have to download a specific file from a website with wget. The URL is very long, so I created a free .tk-domain that forwards to the file. If I use my new .tk-URL in my browser, it downloads the file as I want it but on my VPS on Ubuntu, it only downloads the index.html file if I use wget. I've two forwarding options on Dot.TK

  • Frame (Cloaking)
  • Redirect (HTTP 301 Forwarding)

Which option should I use and is there a way to get the file instead of the index.html?

1

1 Answers

1
votes

If you use a 301, wget should be able to download the file. You can also use curl -LO <URL> with the 301.