Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools HTTP Basics GET and POST Requests in a Browser Intro to Chrome Developer Tools

Noah Fields
Noah Fields
13,985 Points

Why does the User-Agent header contain multiple different web browsers?

It seems interesting that the User-Agent header doesn't specify exactly which web browser is being used in this video, and rather provides several options. I replicated these steps myself as I watched, and found that my own User-Agent header looks different but appears, at the very least, to refer to only the web browser I personally am using (a Firefox variant, for the record) and does not mention Safari or anything else.

For what reason would the User-Agent header not have precision in web browsers? Does it imply some commonality between them that is only apparent on the back-end?

1 Answer

Jonatan Witoszek
Jonatan Witoszek
15,384 Points

WOW! That's crazy... Thanks for the link ;)