[asterisk-users] CURL to post application/json

David P davidswalkabout at gmail.com
Thu Oct 4 15:58:50 CDT 2018

We tried to use the CURL fn to POST json, but it's sent as form data and
there seems no support for changing the Content-Type header. We switched to
invoking curl in the shell.

All the documentation I could find says there is just one parameter for the
url and an optional second for POST body. Is there an undocumented way to
set Content-Type?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20181005/c7370339/attachment.html>

More information about the asterisk-users mailing list