Voting

Please answer this simple SPAM challenge: seven plus two?
(Example: nine)

The Note You're Voting On

ASchmidt at Anamera dot net
4 months ago
Setting the "Location: " header has another undocumented side-effect!

It will also disregard any expressly set "Content-Type: " and forces:

"Content-Type: text/html; charset=UTF-8"

The HTTP RFCs don't call for such a drastic action. They simply state that a redirect content SHOULD include a link to the destination page (in which case ANY HTML compatible content type would do). But PHP even overrides a perfectly standards-compliant
"Content-Type: application/xhtml+xml"!

<< Back to user notes page

To Top