Answer by GideonMax for Are HTTP headers case-sensitive?
officially, headers are case insensitive, however, it is common practice to capitalize the first letter of every word.but, because it is common practice, certain programs like IE assume the headers are...
View ArticleAnswer by jayarjo for Are HTTP headers case-sensitive?
They are not case sensitive. In fact NodeJS web server explicitly converts them to lower-case, before making them available in the request object.It's important to note here that all headers are...
View ArticleAnswer by Afshin Mehrabani for Are HTTP headers case-sensitive?
tldr; both HTTP/1.1 and HTTP/2 header names are case-insensitive BUT HTTP/2 enforces lowercase header names.HTTP/1.1According to RFC 7230, section 3.2:Each header field consists of a case-insensitive...
View ArticleAnswer by user6262626262 for Are HTTP headers case-sensitive?
The RFC for HTTP (as cited above) dictates that the headers are case-insensitive, however you will find that with certain browsers (I'm looking at you, IE) that capitalizing each of the words tends to...
View ArticleAnswer by Rudiger W. for Are HTTP headers case-sensitive?
header('Content-type: image/png')did not work with PHP 5.5 serving IE11, as in the image stream was shown as textheader('Content-Type: image/png')worked, as in the image appeared as an imageOnly...
View ArticleAnswer by Lightness Races in Orbit for Are HTTP headers case-sensitive?
HTTP header names are case-insensitive, according to RFC 2616:4.2:Each header field consists of a name followed by a colon (":") and the field value. Field names are case-insensitive.(Field values may...
View ArticleAnswer by Ignacio Vazquez-Abrams for Are HTTP headers case-sensitive?
Header names are not case sensitive.From RFC 2616 - "Hypertext Transfer Protocol -- HTTP/1.1", Section 4.2, "Message Headers":Each header field consists of a name followed by a colon (":") and the...
View ArticleAre HTTP headers case-sensitive?
In a blog post I use the following PHP to set the content-type of a response:header('content-type: application/json; charset=utf-8');I just got a comment on that post saying that content-type needs to...
View Article