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

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!

0

3 Answers

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.

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

0

While the man page says it is Wget/version (like others pointed out already), it is currently actually:

Wget/version (linux-gnu)

at least on Ubuntu.

To inspect the actual user agent being sent, you can add the -d option to your wget call.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like