Is there an "elegant" way to get the current URL (including the Query String)?
I've been using this:
$ENV{QUERY_STRING} =~ s/(['"])/uc sprintf("%%%02x",ord($1))/eg; my $url = join ( "?", CGI::url ( -absolute => 1 ) || "/", $ENV{QUERY_S +TRING} || () );
I would have liked to use CGI::url ( -absolute => 1, -query_string => 1 ) but this returns the POSTed params instead of the Query String.
In reply to How to get current URL with Query String by thewebsi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |