How do I modify my Apache request headers?

Linode Staff

I'm having an issue with header parameters. At some point the header is automatically changed so that the first letter will be set to a capital in the header.

For example, I have "username" passed through a header. This should be lowercase, but in PHP the header is seen as "Username".

I'm using Apache and not totally sure how to fix this in an appropriate way. Would this be handled with mod_headers?

1 Reply

See:

https://stackoverflow.com/questions/5258977/are-http-headers-case-sensitive#5259004

Header names are supposed to be case-insensitive but browsers typically change the first letter of the header name to a capital letter.

-- sw

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct