in reply to Altering "Server" HTTP Header Param
Greetings all,
tye had a really interesting idea he told me via Chatterbox. He said I should try making the script a non-parsed headers script and feed in my own HTTP headers manually. I did so, and now all my HTTP headers appear to be "correct" (i.e. incorrect intentionally).
Problem is, it doesn't appear to work when I try this using CGI.pm, but only as a flat series of lines.
#!/usr/bin/perl use strict; use warnings; =pod use CGI; my $cgi = new CGI; print $cgi->header( -nph => 1, -type => 'text/html; charset=ISO-8859-1', -cache_control => 'private', -connection => 'close', -server => 'Microsoft-IIS/6.0' ); =cut print <<ENDOFHTML; HTTP/1.1 200 OK Cache-Control: private Date: Mon, 14 Oct 2002 21:41:25 GMT Server: Microsoft-IIS/6.0 Content-Length: 31000 Content-Type: text/html Expires: Mon, 25 Oct 2010 21:21:21 GMT P3P: CP='ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo +OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI' <HTML><HEAD><!-- the rest of the html document -->
The problem is that NetCraft is still reporting me running Apache. However, after some reading on their site, I get the feeling (backed by no real evidence) that they query for new site data on a daily basis. So perhaps by tomorrow, my problems will be solved.
gryphon
code('Perl') || die;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re(2): Altering "Server" HTTP Header Param
by Phaysis (Pilgrim) on Oct 14, 2002 at 23:37 UTC | |
Re: Re: Altering "Server" HTTP Header Param
by perrin (Chancellor) on Oct 15, 2002 at 04:27 UTC |