API Testing · Junior · Question 68 of 75
Are HTTP header names case-sensitive?
- 1No,
Content-Typeandcontent-typeare the same header - 2Yes, a header with the wrong case is always ignored
- 3Only custom headers are case-insensitive
Show the answer
Correct answer: No, Content-Type and content-type are the same header
Explanation
HTTP/2 even sends them in lowercase. Tests that compare header names exactly as strings may fail for no real reason.