Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I call another Perl CGI script within a CGI script?

Tags:

cgi

perl

I have a Perl CGI script that creates a login screen, i.e. user name and password.

I want, after successful login, the user to be redirected to the next action within the application (another Perl CGI script).

What is the command to redirect one CGI script or to an HTML page?

like image 634
gath Avatar asked May 09 '26 17:05

gath


1 Answers

In HTTP terms you should have your program output a 302 or 303 status code and a Location header.

If you are using CGI.pm then you can use the redirect method to achieve this.

like image 79
Quentin Avatar answered May 12 '26 11:05

Quentin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!