0

I'm trying to download a program from a website using wget. However, whenever I try to download it I instead get a HTML file. I'm using the following syntax.

wget http://domain.com/downloads/name/ 

If you go the link directly the browser automatically tries to download the file. Why is that I'm getting the HTML file instead of the actual file I want?

2
  • what happen when you open the url normally, is it giving the file to download or html page? Commented Mar 18, 2015 at 16:35
  • it takes you to a html page and then you see a countdown clock..when the countdown clock reaches 0 I get a popup asking me if I want to save or run the file. Commented Mar 18, 2015 at 17:22

1 Answer 1

1

I don't think wget can get the file for you like this, it will just get you the first page html, your page has some delaying code, and not a direct url to the file, so you will need a real browser to download the file

Sign up to request clarification or add additional context in comments.

2 Comments

Since that file is trying to download automatically, does that mean the file is located in that folder?
it may be anywhere on the server, may be outside the website folder and some where else, and may be on another server as well

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.