|
Apache HTTPD
|
Macros | |
| #define | APACHE_ARG_MAX 512 |
| #define | AP_TRUST_CGILIKE_CL_ENVVAR "ap_trust_cgilike_cl" |
| #define AP_TRUST_CGILIKE_CL_ENVVAR "ap_trust_cgilike_cl" |
Definition at line 228 of file util_script.h.
| #define APACHE_ARG_MAX 512 |
Definition at line 40 of file util_script.h.
| void ap_add_cgi_vars | ( | request_rec * | r | ) |
Add CGI environment variables required by HTTP/1.1 to the request's environment table
| r | the current request |
Definition at line 381 of file util_script.c.
| void ap_add_common_vars | ( | request_rec * | r | ) |
Add common CGI environment variables to the requests environment table
| r | The current request |
Definition at line 154 of file util_script.c.
| void ap_args_to_table | ( | request_rec * | r, |
| apr_table_t ** | table | ||
| ) |
Parse query args for the request and store in a new table allocated from the request pool. For args with no value, "1" will be used instead. If no query args were specified, the table will be empty.
| r | The current request |
| table | A new table on output. |
Definition at line 941 of file util_script.c.
| char ** ap_create_environment | ( | apr_pool_t * | p, |
| apr_table_t * | t | ||
| ) |
Create an environment variable out of an Apache table of key-value pairs
| p | pool to allocate out of |
| t | Apache table of key-value pairs |
Definition at line 112 of file util_script.c.
This "cute" little function comes about because the path info on filenames and URLs aren't always the same. So we take the two, and find as much of the two that match as possible.
| uri | The uri we are currently parsing |
| path_info | The current path info |
Definition at line 332 of file util_script.c.
| int ap_scan_script_header_err | ( | request_rec * | r, |
| apr_file_t * | f, | ||
| char * | buffer | ||
| ) |
Read headers output from a script, ensuring that the output is valid. If the output is valid, then the headers are added to the headers out of the current request
| r | The current request |
| f | The file to read from |
| buffer | Empty when calling the function. On output, if there was an error, the string that cause the error is stored here. |
Definition at line 751 of file util_script.c.
| int ap_scan_script_header_err_brigade | ( | request_rec * | r, |
| apr_bucket_brigade * | bb, | ||
| char * | buffer | ||
| ) |
Read headers output from a script, ensuring that the output is valid. If the output is valid, then the headers are added to the headers out of the current request
| r | The current request |
| bb | The brigade from which to read |
| buffer | Empty when calling the function. On output, if there was an error, the string that cause the error is stored here. |
Definition at line 812 of file util_script.c.
| int ap_scan_script_header_err_brigade_ex | ( | request_rec * | r, |
| apr_bucket_brigade * | bb, | ||
| char * | buffer, | ||
| int | module_index | ||
| ) |
Read headers output from a script, ensuring that the output is valid. If the output is valid, then the headers are added to the headers out of the current request
| r | The current request |
| bb | The brigade from which to read |
| buffer | Empty when calling the function. On output, if there was an error, the string that cause the error is stored here. |
| module_index | The module index to be used for logging |
Definition at line 820 of file util_script.c.
| int ap_scan_script_header_err_core | ( | request_rec * | r, |
| char * | buffer, | ||
| int(*)(char *, int, void *) | getsfunc, | ||
| void * | getsfunc_data | ||
| ) |
Read headers output from a script, ensuring that the output is valid. If the output is valid, then the headers are added to the headers out of the current request
| r | The current request |
| buffer | Empty when calling the function. On output, if there was an error, the string that cause the error is stored here. |
| getsfunc | Function to read the headers from. This function should act like gets() |
| getsfunc_data | The place to read from |
Definition at line 737 of file util_script.c.
| int ap_scan_script_header_err_core_ex | ( | request_rec * | r, |
| char * | buffer, | ||
| int(*)(char *, int, void *) | getsfunc, | ||
| void * | getsfunc_data, | ||
| int | module_index | ||
| ) |
Read headers output from a script, ensuring that the output is valid. If the output is valid, then the headers are added to the headers out of the current request
| r | The current request |
| buffer | Empty when calling the function. On output, if there was an error, the string that cause the error is stored here. |
| getsfunc | Function to read the headers from. This function should act like gets() |
| getsfunc_data | The place to read from |
| module_index | The module index to be used for logging |
< Module has handled this stage.
RFC 2616: HTTP
< Module has handled this stage.
Definition at line 462 of file util_script.c.
| int ap_scan_script_header_err_ex | ( | request_rec * | r, |
| apr_file_t * | f, | ||
| char * | buffer, | ||
| int | module_index | ||
| ) |
Read headers output from a script, ensuring that the output is valid. If the output is valid, then the headers are added to the headers out of the current request
| r | The current request |
| f | The file to read from |
| buffer | Empty when calling the function. On output, if there was an error, the string that cause the error is stored here. |
| module_index | The module index to be used for logging |
Definition at line 758 of file util_script.c.
| int ap_scan_script_header_err_strs | ( | request_rec * | r, |
| char * | buffer, | ||
| const char ** | termch, | ||
| int * | termarg, | ||
| ... | |||
| ) |
Read headers strings from a script, ensuring that the output is valid. If the output is valid, then the headers are added to the headers out of the current request
| r | The current request |
| buffer | Empty when calling the function. On output, if there was an error, the string that cause the error is stored here. |
| termch | Pointer to the last character parsed. |
| termarg | Pointer to an int to capture the last argument parsed. |
The varargs are string arguments to parse consecutively for headers, with a NULL argument to terminate the list.
Definition at line 892 of file util_script.c.
| int ap_scan_script_header_err_strs_ex | ( | request_rec * | r, |
| char * | buffer, | ||
| int | module_index, | ||
| const char ** | termch, | ||
| int * | termarg, | ||
| ... | |||
| ) |
Read headers strings from a script, ensuring that the output is valid. If the output is valid, then the headers are added to the headers out of the current request
| r | The current request |
| buffer | Empty when calling the function. On output, if there was an error, the string that cause the error is stored here. |
| module_index | The module index to be used for logging |
| termch | Pointer to the last character parsed. |
| termarg | Pointer to an int to capture the last argument parsed. |
The varargs are string arguments to parse consecutively for headers, with a NULL argument to terminate the list.
Definition at line 870 of file util_script.c.