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. > > On Nov 8, 2013, at 12:45 PM, Brian J. France <[email protected]> wrote: > >> Does anybody have example code of how to use apreq_parse_generic in an httpd >> module hook (non-handler)? >> >> Need to use apreq2 and mod_apreq2 to read json data and not having any luck. >> >> Thanks, >> >> Brian >> >> - Please keep me looped into any reply, not subscribed. > >
