Can I redirect to a PHP page from a Perl CGI script?
- by sea_1987
I am working with a site that uses an outside source to work with payment transactions, one of the prerequisites is that on success a CGI script is called.
What I am wanting to know is it possible to do a redirect to a PHP page with the CGI script and have the PHP detect that it has been loaded via a Perl redirect, I currently have this is in my Perl.
#!/usr/bin/perl
#
# fixedredir.cgi
use strict;
use warnings;
my $URL = "http://www.example.com/";
Location: $URL;