[microhttpd] POST request with body can't get return message

mm e via sr-users <[email protected]>
Newsgroups gmane.comp.voip.ser
Message-ID <[email protected]>
version: kamailio 6.1.0-dev1 (x86_64/linux) 75b73d

loadmodule "microhttpd.so"
modparam("microhttpd", "listen_addr", "0.0.0.0")
modparam("microhttpd", "listen_port", 8364)

event_route[microhttpd:request] {
    mhttpd_reply("200", "OK", "","");
}

When using "curl -X POST http://127.0.0.1:8364", a response can be obtained. When using "curl -d '{"test":"2", "test2":"1"}' -H "Content-Type: application/json" -X POST http://127.0.0.1:8364" to pass json data, the kamailio process will be blocked.
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the sender!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.