|more useful options|
[SOLVED] Unwanted parameter when executing CGI scriptsby Nocturnus (Sexton)
|on Jan 04, 2013 at 14:09 UTC||Need Help??|
Nocturnus has asked for the
wisdom of the Perl Monks concerning the following question:
I have a site which consists only of cgi scripts; these are programmed in Perl. The scripts are generating the HTML content dynamically, including links to other Perl CGI scripts. The scripts are usually called with certain parameters via query string, and that is working so far.
I am using the routines from CGI.pm (of course) to parse / fetch the URL query parameters; I am using Apache 2.2 as HTTP daemon (Debian sqeeze).
Now, when calling such scripts without any parameters (i.e. without query string after the script name / path), the scripts are seeing an unwanted parameter "keywords" (which does not have a value).
I have googled and noticed that it might have something to do with ISINDEX tags in HTML. But I am definitely not using such tags. Another site suggested that this parameter is automatically created by CGI.pm if there is no ampersand and no = in the query string.
Anyways, I just would like to know how that parameter efficiently could be removed at the CGI level. Of course, this must be done in a way which still leaves the possibility to have a wanted parameter which is named "keywords".
I hope I have described the problem clearly.