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 4–77 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 407.
This can be any HTTP response status code or reason phrase according
to the HTTP specification.
The following is a list of common HTTP response status codes and
reason strings:
-
401 Unauthorized
-
403 Forbidden
-
404 Not Found
-
500 Server Error
|
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
|