F
FeelLikeANut
I have a Web server on my comp set to use a port other than 80 for my
own testing purposes. This is making a problem for creating a self-
referencing URL, but I don't understand why. The CGI module works. I
looked at its source, and it seems to retrieve the port number through
$ENV{SERVER_PORT}, but when I access this environment variable in the
main body of my program, it is always incorrectly reporting port 80.
I'm sure someone will ask me why I don't just use the CGI module. It's
because I'm using CGI::Minimal instead, and because accessing this one
environment variable really should not be a big deal.
Can someone help me understand why $ENV{SERVER_PORT} reports
differently in the CGI module and in my main program? Thanks.
own testing purposes. This is making a problem for creating a self-
referencing URL, but I don't understand why. The CGI module works. I
looked at its source, and it seems to retrieve the port number through
$ENV{SERVER_PORT}, but when I access this environment variable in the
main body of my program, it is always incorrectly reporting port 80.
I'm sure someone will ask me why I don't just use the CGI module. It's
because I'm using CGI::Minimal instead, and because accessing this one
environment variable really should not be a big deal.
Can someone help me understand why $ENV{SERVER_PORT} reports
differently in the CGI module and in my main program? Thanks.