Ho can I access e.g. the ‘Host’ header info from rails code? I cant find
it in rails request object.
All headers that come in from the server are translated almost exactly
like CGI requires: all caps, underscores () replacing dash (-),
beginning with HTTP. Then a few oddball ones are generated like
PATH_INFO, REQUEST_PATH, etc.
Too bad the CGI folks couldn’t be bothered to be consistent, but that’s
what everyone uses to that’s what Mongrel does.
Ho can I access e.g. the ‘Host’ header info from rails code? I cant find
it in rails request object.
All headers that come in from the server are translated almost exactly
like CGI requires: all caps, underscores () replacing dash (-),
beginning with HTTP. Then a few oddball ones are generated like
PATH_INFO, REQUEST_PATH, etc.
Too bad the CGI folks couldn’t be bothered to be consistent