rndmtxt has asked for the wisdom of the Perl Monks concerning the following question:
<form action="http://site/cgi-bin/go.cgi" method="GET"> <input type="text" name="browse_url"> <input type="submit"> </form>
My primary problem is that it runs fine on the command line eg. perl go.cgi but not through apache/mod_perl, it gives an internal server error. Any advice would be wonderful.#!/usr/bin/perl use strict; use CGI; my $redirect_url = param('browse_url'); #my $redirect_url = "http://google.com"; #(used for testing) print "<html><head>"; print "<meta http-equiv=\"refresh\" content=\"10;url=$redirect_url\">" +; print "</head><body><a href=\"$redirect_url\">click</a></body></html>\ +n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI error with simple script
by ptum (Priest) on Jan 10, 2006 at 18:32 UTC | |
by tirwhan (Abbot) on Jan 10, 2006 at 18:47 UTC | |
by rndmtxt (Initiate) on Jan 10, 2006 at 18:52 UTC | |
by rndmtxt (Initiate) on Jan 10, 2006 at 18:43 UTC | |
by rndmtxt (Initiate) on Jan 10, 2006 at 18:45 UTC | |
|
Re: CGI error with simple script
by wazzuteke (Hermit) on Jan 10, 2006 at 20:01 UTC |