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 -- 
sr-users@lists.kamailio.org
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to