Salman
Salman

Reputation: 197

HTTP Header key allowed characters

I have checked different documents for HTTP header key allowed characters. I haven't found any concrete results like these are characters that are not allowed? Can anyone please help me to find out which are the valid characters allowed in the HTTP header key as per specification?

Upvotes: 1

Views: 535

Answers (1)

Evert
Evert

Reputation: 99523

header-field   = field-name ":" OWS field-value OWS
field-name     = token
token          = 1*tchar
tchar          = "!" / "#" / "$" / "%" / "&" / "'" / "*"
                 / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"
                 / DIGIT / ALPHA
                 ; any VCHAR, except delimiters

References:

Upvotes: 1

Related Questions