如何在perl中加载html页面
现在,当我转到href为“myproject.local/cgi-bin/routes.cgi?page=reports”的链接时,它只是以纯文本显示标题和重定向状态 我如何使它实际加载我在重定向url中提供的页面如何在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'); 请帮忙,谢谢不要单独给我打电话 调用正在生成重定向标头
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
和状态
。