What is the default user agent when using 'wget' on Linux?

3

3

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!

Edward_178118

Posted 2012-10-29T22:35:23.023

Reputation: 447

Answers

5

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.

Eduard Florinescu

Posted 2012-10-29T22:35:23.023

Reputation: 2 116

6

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

Mikhail

Posted 2012-10-29T22:35:23.023

Reputation: 3 782