Greetings to All,
I asked this question in the chatterbox a couple of weeks back, but looks like this task is tougher than I thought. Hence I'm posting it here in the hopes it reaches a wider audience and of course, a solution.
I need to get the exact order in which the HTTP request headers were sent by the browser from within my CGI script. I need this to perform browser fingerprinting.
All the following don't seem to work
# %header will be in random order my $q = CGI->new; my %header = map { lc($_) => $q->http($_) } $q->http; # %ENV is in random order print Dumper \%ENV my $h = HTTP::Headers->new(%ENV); # this returns the headers in the recommended # "Good Practice" order. print Dumper $h->header_field_names; # this doesn't work as well print $h->as_string;
You can check the order in which the request headers were sent using Firebug.
PHP's getfullheaders() works :(
Any help would be great. Perhaps some Apache module can help? I will be releasing code to this fingerprinting module to CPAN.
Thanks!
In reply to Get the order of HTTP request headers by arc_of_descent
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |