in reply to Another way to find http referrer
Configuring at the apache level is the most secure route ... but the following could be used as the base for redirecting to https. Hopefully all your requests are GETs. If not, I look forward to your next question on why you lose POST params on a redirect.
#!/usr/bin/perl use CGI; my $cgi = CGI->new; my $proto = $cgi->protocol(); print $cgi->header, $cgi->start_html( 'protocol test'), $cgi->h1( 'proto is ' . $proto ), $cgi->end_html;
-derby
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Another way to find http referrer
by Anonymous Monk on Feb 28, 2012 at 00:46 UTC |
In Section
Seekers of Perl Wisdom