CURL To Post Application/json

Home » Asterisk Users » CURL To Post Application/json
Asterisk Users 3 Comments

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?

3 thoughts on - CURL To Post Application/json