R
robertchen117
my cgi is very simple, just output the file's content. the file name
is from another cgi's parameter.
If I use firefox visist the page, no issues at all! Everything looks
great. But if I use Internet Explorer, the cgi will make IE to die.
Please help me.
#!/tivoli/vendor/perl/bin/perl
use CGI;
#rchen on 4/10
my $cgi = new CGI;
print $cgi->header(-type=>"text/html", -expires=>'now');
print $cgi->start_html("Details of the configurations");
my $logfile = $cgi->param('logfile');
open(DATA, "$logfile")|| die("File is not exist!\n");
@lines = <DATA>;
foreach $line (@lines) {
print "<PRE>$line <\PRE>";
}
close(DATA);
print $cgi->end_html;
is from another cgi's parameter.
If I use firefox visist the page, no issues at all! Everything looks
great. But if I use Internet Explorer, the cgi will make IE to die.
Please help me.
#!/tivoli/vendor/perl/bin/perl
use CGI;
#rchen on 4/10
my $cgi = new CGI;
print $cgi->header(-type=>"text/html", -expires=>'now');
print $cgi->start_html("Details of the configurations");
my $logfile = $cgi->param('logfile');
open(DATA, "$logfile")|| die("File is not exist!\n");
@lines = <DATA>;
foreach $line (@lines) {
print "<PRE>$line <\PRE>";
}
close(DATA);
print $cgi->end_html;