Apache HTTPD
Classes | Enumerations | Functions

Classes

struct  cgi_exec_info_t
 

Enumerations

enum  prog_types { RUN_AS_SSI , RUN_AS_CGI }
 

Functions

 APR_DECLARE_OPTIONAL_FN (apr_status_t, ap_cgi_build_command,(const char **cmd, const char ***argv, request_rec *r, apr_pool_t *p, cgi_exec_info_t *e_info))
 

Detailed Description

Enumeration Type Documentation

◆ prog_types

Enumerator
RUN_AS_SSI 
RUN_AS_CGI 

Definition at line 31 of file mod_cgi.h.

Function Documentation

◆ APR_DECLARE_OPTIONAL_FN()

APR_DECLARE_OPTIONAL_FN ( apr_status_t  ,
ap_cgi_build_command  ,
(const char **cmd, const char ***argv, request_rec *r, apr_pool_t *p, cgi_exec_info_t *e_info  
)

Registerable optional function to override CGI behavior; Reprocess the command and arguments to execute the given CGI script.

Parameters
cmdPointer to the command to execute (may be overridden)
argvPointer to the arguments to pass (may be overridden)
rThe current request
pThe pool to allocate correct cmd/argv elements within.
e_infopass e_info.cmd_type (Set to APR_SHELLCMD or APR_PROGRAM on entry) and e_info.detached (Should the child start in detached state?)
Remarks
This callback may be registered by the os-specific module to correct the command and arguments for apr_proc_create invocation on a given os. mod_cgi will call the function if registered.