in reply to Re: Calling a cgi with another cgi
in thread Calling a cgi with another cgi
For example:
will cause an internal server error because we're not printing out the required HTTP header. Our webserver doesn't care what script prints out that header, but it does expect that it'll be printed out before anything else is. If we change file2.cgi to be:#!/usr/local/bin/perl -w ##### file1.cgi use CGI; use strict; my $q = new CGI; print $q->redirect( -uri => 'file2.cgi' ); exit; ##### cut here ##### #!/usr/local/bin/perl -w ##### file2.cgi print "foo"; exit;
we don't get any error.#!/usr/local/bin/perl -w ##### file2.cgi use CGI; use strict; my $cgi = new CGI; print $cgi->header(); print "foo"; exit;
Perhaps that is something you need to check.
jarich
|
|---|