How do I get full request URI in a perl website using HTML::Mason? Or at least scheme used (http or https)?
Have tried $r->uri and $r->unparsed_uri but both return only path return the path component of the requested URL
How do I get full request URI in a perl website using HTML::Mason? Or at least scheme used (http or https)?
Have tried $r->uri and $r->unparsed_uri but both return only path return the path component of the requested URL
Try accessing the environment variables HTTPS, SERVER_PORT, and REQUEST_URI. For example:
mason_server.pl:
And in the
comp_root
folder I have this file:index.html:
After starting the server, you can visit http://localhost:3000/ to check the result..