I have some scripts that I wrote for clients a few hundred years ago, that look like:
use LWP::Simple;
# note that it's HTTP, not HTTPS
$getHeader = get('http://www.example.com/header.php');
print "Content-type: text/html\n\n";
print $getHeader;
I don't know when that stopped working, but I just now found it in my error log. These are seldom-used scripts, so it's probably been like that for awhile.
I could rebuild these scripts in PHP, but I doubt it's worth it to them to pay anything.
I tried changing it to LWP::UserAgent, but that didn't show any results, either. Nothing in the error log with that one, though. But I would bet that there's a security setting somewhere that's blocking it for whatever reason.
So before I do anything major, can you guys suggest a simple approach to include the results from a PHP script in the Perl script's output from the same account?