3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

content-type大文字小文字

Posted at

問題

  • HTTPヘッダーに、content-typeが、大文字か? 小文字か?

調査

4.2 メッセージヘッダー
   HTTP header fields, which include General-Header (Section 4.3),
   Request-Header (Section 5.2), Response-Header (Section 6.2), and
   Entity-Header (Section 7.1) fields, follow the same generic format as
   that given in Section 3.1 of RFC 822 [7]. Each header field consists
   of a name followed immediately by a colon (":"), a single space (SP)
   character, and the field value. Field names are case-insensitive.
   Header fields can be extended over multiple lines by preceding each
   extra line with at least one SP or HT, though this is not
   recommended.
HTTPヘッダ分野(一般ヘッダー(セクション4.3)、Request-ヘッダー(セクション5.2)、Response-ヘッダー(セクション6.2)、およびEntity-ヘッダー(セクション7.1)分野を含んでいる)はRFC822[7]のセクション3.1におけるそんなに与えられるのと同じジェネリック形式に続きます。 各ヘッダーフィールドがすぐコロンがあとに続いた名前から成る、(「:」、)、シングルスペース(SP)キャラクタ、および分野値。 フィールド名は大文字と小文字を区別しないです。 ヘッダーフィールドはそれぞれの付加的な系列に先行することによって、達せられた倍数が少なくとも1SPかHTと共に立ち並んでいます、これが推薦されませんがことであるかもしれません。

結論

  • フィールド名は大文字と小文字を区別しないので、content-typeが、大文字と小文字を区別しない。
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?