Re: apreq_parse_generic example

2013-11-09 Thread Joseph Schaefer
The generic parser stores the POST data in the upload brigade of a param named “_dummy_” but it’s not in the output table, its in the parser’s ctx pointer. The struct is declared in parser.c so it’s technically private but the param is in the first slot and that’s meant to be public. On Nov 8,

Re: apreq_parse_generic example

2013-11-09 Thread Brian J. France
Finally got some working code. Registered the parser for the content type: apreq_register_parser(application/json, apreq_parse_generic); in a pre_init hook, then normal apreq_handle_apache2 and apreq_body calls, then a apreq_parser_get call to get the parser and: dummy = *(apreq_param_t