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

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

2 Answers 2

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

Your Answer


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