Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

How do I download a webpage or a file from linux OS rather than a browser? When the file is locked with user agent.

share|improve this question

migrated from Apr 11 '13 at 17:10

This question came from our site for professional and enthusiast programmers.

You may wish to use the Curl command from within bash. Checkout the man pages for it to set a user agent header: – Carl Owens Apr 11 '13 at 13:23

Use wget (cf manual page)

and add the --user-agent option with the right user agent.

You can download a single file like this:


or for example an entire ftp directory:

wget -r
share|improve this answer
wget --user-agent="Mozilla/4.0 (Windows; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)"
share|improve this answer

You must log in to answer this question.