Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

What is the default user agent when using the 'wget' command on Linux. I'm not trying to fake out a website when it's being used, I simply want to know what appears in the Apache logs. Thanks!

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

You can change it with command --user-agent=agent-string.

The man page says:

Wget normally identifies as ‘Wget/version’, version being the current version number of Wget.

share|improve this answer
add comment

From the manual

The http protocol allows the clients to identify themselves using a User-Agent header field. This enables distinguishing the www software, usually for statistical purposes or for tracing of protocol violations. Wget normally identifies as ‘Wget/version’, version being the current version number of Wget.

source http://www.gnu.org/software/wget/manual/wget.html

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.