API Testing · Junior · Question 68 of 75

Are HTTP header names case-sensitive?

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.

Further reading

Problem with a question

API Testing · Junior · question 68

Test yourself

Take the API Testing · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz