Gentlepeople:
I am using libmicrohttpd to make, naturally, a web server. The client wants to send me a post request with a content type of “application/json”.
Libmicrohttpd doesn’t seem to support application/json. Only "application/x-www-form-urlencoded" and "multipart/form-data". I tried using MHD_set_connection_value as the source code suggested, but it doesn’t work. I suspect it doesn’t
replace the existing Content-Type key, but adds a header to the end.
Does libmicrohttpd just not work for this case? I don’t feel I can tell my client not to send me application/json. It’s such an obvious and commonly accepted format.
Ideas?
Regards, Rick