Subject: | A discrepancy between CGI and CGI::Simple |
Hi Andy
Test code:
#!/usr/bin/env perl
use feature 'say';
use CGI;
use CGI::Simple;
# --------------
say 'CGI: ', CGI -> new -> redirect('http://127.0.0.1/');
say 'CGI::Simple: ', CGI::Simple -> new ->
redirect('http://127.0.0.1/');
I get:
CGI: Status: 302 Found
Location: http://127.0.0.1/
CGI::Simple: Status: 302 Moved
Location: http://127.0.0.1/
It's the 302 line I'm interested in. Would you say the Moved is more
accurate than the Found? If so, I'll log a bug report for CGI.
MY HTTP status code list leaves me a bit confused:
302 HTTP_MOVED_TEMPORARILY Found
302 REDIRECT Found
taken from https://metacpan.org/module/Apache2::Controller::Refcard
Cheers
Ron