in reply to Get the order of HTTP request headers
This isn't possible with CGI. The CGI RFC doesn't define any mechanism for determining the order of the headers. Additionally, environment variables in general don't have a defined order, and Perl's %ENV hash is randomized. The only way to do this would be to have a different mechanism of communicating with the server software such as ig's mod_perl example.
It wouldn't be possible to do this in PHP for scripts run as CGI either. Assuming you meant PHP's getallheaders function, it is even documented as only working when running as an Apache module.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Get the order of HTTP request headers
by ikegami (Patriarch) on May 06, 2010 at 05:18 UTC | |
by WizardOfUz (Friar) on May 06, 2010 at 10:37 UTC | |
by ikegami (Patriarch) on May 06, 2010 at 17:00 UTC | |
by WizardOfUz (Friar) on May 06, 2010 at 18:32 UTC | |
by ikegami (Patriarch) on May 06, 2010 at 18:58 UTC | |
| |
by Haarg (Priest) on May 06, 2010 at 16:20 UTC |
In Section
Seekers of Perl Wisdom