Re: apreq_parse_generic example

"Brian J. France" <[email protected]> Fri, 8 Nov 2013 13:42:24 -0500
Newsgroups gmane.comp.apache.apreq
Message-ID <[email protected]>
Right, which is why I thought the apreq_parse_generic would handle that =
and I can pull the full string out and handle it myself.

What I really need is a way for a hook to read the post data and the =
content handler to also be able to read it as well.  mod_apreq allowed =
this for types it knows about (application/x-www-form-urlencoded, =
multipart/form-data, etc), but not it doesn't know about like =
application/json.

Is there another way with apreq2/mod_apreq or ap_setup_client_block, =
ap_should_client_block, ap_get_client_block that both hooks get the =
data?

Brian


On Nov 8, 2013, at 1:02 PM, Joseph Schaefer <[email protected]> =
wrote:

> Been a while since I thought about this, but
> apreq is really only suited for table-based
> data structures.  JSON is a little too generic
> for that unless you know the data is restricted
> to only key-value pairs.
>=20
> On Nov 8, 2013, at 12:45 PM, Brian J. France <[email protected]> =
wrote:
>=20
>> Does anybody have example code of how to use apreq_parse_generic in =
an httpd module hook (non-handler)?
>>=20
>> Need to use apreq2 and mod_apreq2 to read json data and not having =
any luck.
>>=20
>> Thanks,
>>=20
>> Brian
>>=20
>> - Please keep me looped into any reply, not subscribed.
>=20
>=20