6

I'm looking for all the current standard header values a web server would generally receive. An example would be things like "what will the header look like when coming from a Mac running OS X Leopard and Camino installed?" or "what will the header look like when coming from Fedora 9 running Firefox 3.0.1 versus SuSe running Konqueror?"

PConroy gave an example from JQuery tending towards what I'm looking for. What I want though are the actual example headers.

1
  • Are you looking for a list of user-agents, or a specification of valid HTTP header syntax for any header? For good StackOverflow organization, those should be asked as two separate questions. Commented Oct 2, 2008 at 16:26

7 Answers 7

6

Did you try the RFC? It has all that information.

Actually, when searching for information on any protocol or standard, try to search for the RFC first.

Cheers.

Sign up to request clarification or add additional context in comments.

1 Comment

For even better quality of your answer, maybe edit it to say "RFC2616"? Cheers!
4

There is no set-in-stone list of user agent values. You can find lengthy lists (such as this one used by the JQuery browser plugin).

Regarding other HTTP Headers, this wikipedia article is a good place to start.

Comments

4

With regards to user-agent, that is entirely up to the creator of the application. See this semi tongue-in-cheek history of user-agent. In summary, there really isn't a canonical set of values. Microsoft based user-agents may change based on software installed on the local machine (version of .NET framework, etc).

Comments

2

IANA keeps track of HTTP headers

IANA is responsible for maintaining many of the codes and numbers contained in a variety of Internet protocols, enumerated below. We provide this service in coordination with the Internet Engineering Task Force (IETF).

Which includes:

Message Headers

  • Permanent Message Header Field Names
  • Provisional Message Header Field Names

Here's the exhaustive list which was originally based on RFC 4229

Comments

1

For the user agent, a quick google search pulled up this site.

Comments

0

The list of HTTP headers is easily available on the W3 website:

PConroy also linked to the wikipedia page, which is more concise, and a little easier formatted:

However, the "User-Agent" header is a bad example, since there's no set response; the user-agent string is decided by the client so it can literally be anything. There's a very comprehensive List of User Agents available, but it's not necessarily going to cover any possible option, since even some toolbars and applications can modify the user-agent for Internet Explorer or other browsers.

Comments

0

The chipmunk book from O'Reilly is good as is Chris Shiflett's HTTP reference.

Oh, whoops, it's not a chipmunk. It's a thirteen-lined ground squirrel.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.