Re:Forcing Wordpress sites to use https even when not directed
by pilif on Thursday July 23, 2015 @12:05PM
(#9936626)
I would have said that content_length is special in that it's supposed to be the actual content length, not the value sent by the client in the header.
But I definitely defer to your wisdom as I'm just a user who hasn't done pure CGI in 15 years. As somebody who works on PHP, you are probably infinitely more qualified
Re:Forcing Wordpress sites to use https even when not directed
by TazeTSchnitzel on Saturday July 25, 2015 @08:45AM
(#9947437)
You have a point there. If the request body was weird and lacked the header somehow, I suppose CONTENT_LENGTH would still be there.
Usually, yes. But CGI has some headers that don't get that prefix, things like "CONTENT_LENGTH".
It looks to me like whoever added the HTTPS variable feature to Apache implemented it as an unprefixed header rather than a proper CGI variable, for some reason, and that's the issue.
That, or it is a CGI var, but some error in Apache allows HTTP headers to set it.