Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^6: Unwanted parameter when executing CGI scripts

by Nocturnus (Sexton)
on Jan 07, 2013 at 08:07 UTC ( #1011970=note: print w/ replies, xml ) Need Help??


in reply to Re^5: Unwanted parameter when executing CGI scripts
in thread [SOLVED] Unwanted parameter when executing CGI scripts

But that was exactly my problem: If I called

/cgi-bin/script.pl

(i.e. without any parameters and without query string), CGI.pm behaved like if I had called

/cgi-bin/script.pl?keywords=

I should have mentioned that my application in this case needed to get the parameters from the query string only (GET parameters) and that it should not get the POST parameters. Thus, I was using

$q -> url_params

instead of

$q -> param

Perhaps that's the reason for the misbehavior. Furthermore, I have seen some more misbehavior (see post below), so I dumped CGI.pm; I am now parsing the query string myself.

Regards,

Nocturnus


Comment on Re^6: Unwanted parameter when executing CGI scripts
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1011970]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2014-07-28 04:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (186 votes), past polls