Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/perl/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在perl中加载html页面_Perl_Cgi - Fatal编程技术网

如何在perl中加载html页面

如何在perl中加载html页面,perl,cgi,Perl,Cgi,现在,当我转到href为“myproject.local/cgi-bin/routes.cgi?page=reports”的链接时,它只是以纯文本显示标题和重定向状态 我如何使它实际加载我在重定向url中提供的页面 my $q = CGI->new; print $q->header(); print $q->redirect('http://integrationsperl.local/reports.html'); 请帮忙,谢谢不要单独给我打电话 调用正在生成重定向标头

现在,当我转到href为“myproject.local/cgi-bin/routes.cgi?page=reports”的链接时,它只是以纯文本显示标题和重定向状态

我如何使它实际加载我在重定向url中提供的页面

my $q = CGI->new;
print $q->header();
print $q->redirect('http://integrationsperl.local/reports.html');

请帮忙,谢谢

不要单独给我打电话

调用正在生成重定向标头

my $q = CGI->new;
print $q->redirect('http://integrationsperl.local/reports.html');
产出:

Status: 302 Found
Location: http://integrationsperl.local/reports.html

不要单独给我打电话

调用正在生成重定向标头

my $q = CGI->new;
print $q->redirect('http://integrationsperl.local/reports.html');
产出:

Status: 302 Found
Location: http://integrationsperl.local/reports.html

这是用Perl加载页面的标准方法吗?i、 如果用户点击一个链接,这将是在服务器端执行一些逻辑操作后为他们加载新页面的方式?是的。您还可以使用命名参数
-nph
状态
。这是用Perl加载页面的标准方法吗?i、 如果用户点击一个链接,这将是在服务器端执行一些逻辑操作后为他们加载新页面的方式?是的。您还可以使用命名参数
-nph
状态