Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Dear monks,

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.

Regards,

Nocturnus


In reply to [SOLVED] Unwanted parameter when executing CGI scripts by Nocturnus

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (1)
As of 2024-04-18 04:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found