This question already has an answer here:
- Are HTTP headers case-sensitive? 5 answers
Perhaps I'm skimming too fast, but couldn't find this specifically documented. In my particular case, I'm wondering about the "Content-Type" header, but I'm assuming the same rules would apply to other standard headers.
Are these case sensitive, and if so: Is it Content-Type
or Content-type
?
Is there a proper place to reference these?
Case-insensitive.
Hypertext Transfer Protocol -- HTTP/1.1:
Looks like the MIME type in a Content-type header value is case-insensitive, so application/PDF and application/pdf are equivalent. It does say parameter values are case-sensitive, so technically "text/html; charset=UTF-8" is not equivalent to "text/html; charset=utf-8". But that's not a good example because http://www.w3.org/TR/html4/charset.html#h-5.2.1 says "Names for character encodings are case-insensitive".
http://www.w3.org/Protocols/rfc1341/4_Content-Type.html