in reply to removing/stripping query string params

Assuming you are using something like Apache, try the webserver environment to get the URL for your script:
my $url = $ENV{SCRIPT_NAME};
If you are trying to hide the options you will need the POST method.

-Kurt