K
K
khipster2016-03-30 11:28:55
PHP
khipster, 2016-03-30 11:28:55

What case to use in HTTP headers?

header('Content-Type: text/html; charset=UTF-8');
header('Content-Type: text/html; charset=utf-8');
header('Content-type: text/html; charset=utf-8');
header('content-type: text/html; charset=utf-8');

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vanya Zyuzgin, 2016-03-30
@khipster

According to RFC 2616 , "Hypertext Transfer Protocol - HTTP/1.1", §4.2, "Message Headers": header name is case insensitive

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question