[Apache]

Package Name: Apache script tools

Global Functions

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

Parameters
ppool to allocate out of
tApache table of key-value pairs
Return Value
An array containing the same key-value pairs suitable for use with an exec call.

intap_find_path_info(const char *uri, const char *path_info);
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.

Parameters
uriThe uri we are currently parsing
path_infoThe current path info
Return Value
The length of the path info

intap_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

Parameters
rThe current request
fThe file to read from
bufferEmpty when calling the function. On output, if there was an error, the string that cause the error is stored here.
Return Value
HTTP_OK on success, HTTP_INTERNAL_SERVER_ERROR otherwise

intap_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

Parameters
rThe current request
bbThe brigade from which to read
bufferEmpty when calling the function. On output, if there was an error, the string that cause the error is stored here.
Return Value
HTTP_OK on success, HTTP_INTERNAL_SERVER_ERROR otherwise

intap_scan_script_header_err_core(request_rec *r, char *buffer, int (*getsfunc)(char *, int, void *), void *getsfunc_data);
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

Parameters
rThe current request
bufferEmpty when calling the function. On output, if there was an error, the string that cause the error is stored here.
termchPointer to the last character parsed.
termargPointer to an int to capture the last argument parsed.
argsString arguments to parse consecutively for headers, a NULL argument terminates the list.
Return Value
HTTP_OK on success, HTTP_INTERNAL_SERVER_ERROR otherwise

intap_scan_script_header_err_core(request_rec *r, char *buffer, int (*getsfunc)(char *, int, void *), 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

Parameters
rThe current request
bufferEmpty when calling the function. On output, if there was an error, the string that cause the error is stored here.
getsfuncFunction to read the headers from. This function should act like gets()
getsfunc_dataThe place to read from
Return Value
HTTP_OK on success, HTTP_INTERNAL_SERVER_ERROR otherwise

voidap_add_cgi_vars(request_rec *r);
Add CGI environment variables required by HTTP/1.1 to the request's environment table

Parameters
rthe current request
voidap_add_common_vars(request_rec *r);
Add common CGI environment variables to the requests environment table

Parameters
rThe current request

© 2000 [Apache Software Foundation]
Generated by ScanDoc 0.14
Last Updated: Fri Apr 14 12:43:20 2006