|
From: | Justin Graves |
Subject: | Re: [libmicrohttpd] Can handle Content-Type = application/json ? |
Date: | Fri, 22 Feb 2019 09:11:37 -0600 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |