For GET requests , CGI parses the specified parameters and makes them available through the param() method.
For POST requests , param() will return parameters from postdata, but any parameters specified in the request line in the URL itself are still accessible from the url_param() method. (This can be useful when the POST request is greater than $CGI::POST_MAX ; in this case, CGI just discards the postdata data, but you can order the query string parameters that determine which request it should have provided, a good error message. )
For ISINDEX style queries, the requested keywords are available using the keywords() method, as well as via param() in the optional keyword.
Update: if you meant something other than parameters by the URL parameter, the url() method provides all or parts of the requested URL; see GETTING A SCRIPT URL .
ysth
source share