,,lkjlkj
// 1) You may use the following forward declaration if not including mod_parp.h.
APR_DECLARE_OPTIONAL_FN(apr_table_t *, parp_hp_table, (request_rec *));
// 2) Implement your handler using the parp_hp_table() function. Don't call
// the function before mod_parp's header parser has been executed.
static int parp_appl_handler(request_rec * r) {
...
APR_OPTIONAL_FN_TYPE(parp_hp_table) *parp_appl_hp_table =
APR_RETRIEVE_OPTIONAL_FN(parp_hp_table);
apt_table_t *tl = parp_appl_hp_table(r);
if(tl) {
int i;
apr_table_entry_t *e = (apr_table_entry_t *) apr_table_elts(tl)->elts;
for(i = 0; i < apr_table_elts(tl)->nelts; ++i) {
ap_rprintf(r, "%d: %s = %s\n", i,
ap_escape_html(r->pool, e[i].key),
ap_escape_html(r->pool, e[i].val));
}
}
...