query-handler
Applicable in Service- and Error-class
directives.
Note – This function is provided for backward compatibility only
and is used mainly to support the obsolete ISINDEX tag.
If possible, use an HTML form instead.
The query-handler function runs a CGI program
instead of referencing the path requested.
Parameters
The following table describes parameters for the query-handler function.
Table 5–131
query-handler Parameters
Parameter
|
Description
|
path
|
Full path and file name of the CGI program to run.
|
reason
|
(Optional) Text of one of the reason strings such as “Unauthorized”
or “Forbidden”. The string is not case sensitive.
|
code
|
(Optional) Three-digit number representing the HTTP response
status code, such as 401 or 403.
This number can be any HTTP response status code or reason phrase
according to the HTTP specification.
The common HTTP response status codes
and reason strings are:
-
401 Unauthorized
-
403 Forbidden
|
bucket
|
(Optional) Common to all obj.conf functions.
|
Examples
Error query=* fn=query-handler path=/http/cgi/do-grep
Error query=* fn=query-handler path=/http/cgi/proc-info
|