<div dir="auto">Thanks, Nasir, I'll see if that allows us to avoid SHELL.</div><br><div class="gmail_quote"><div dir="ltr">On Fri, 5 Oct 2018, 4:53 pm Nasir Iqbal, <<a href="mailto:nasir@ictinnovations.com">nasir@ictinnovations.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="color:rgb(51,0,153)">Hi David,<br><br>Have you tried CURLOPT function. <br>i.e <br>Set(CURLOPT(header)=Content-Type: application/json)<br><br>Regards</div><div class="gmail_default" style="color:rgb(51,0,153)"><br></div><div><div dir="ltr" class="m_8051116292676448156gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Nasir Iqbal<br><br>ICTBroadcast - an <a href="https://www.ictbroadcast.com/how-become-internet-telephony-service-provider-itsp-using-ictbroadcast-sp-edition" target="_blank" rel="noreferrer">Auto Dialer software for ITSP</a><div>SMS, Fax and Voice broadcasting & Inbound / Outbound Campaigns</div><div><a href="http://www.ictbroadcast.com/" target="_blank" rel="noreferrer">http://www.ictbroadcast.com/</a><br></div></div></div></div></div></div></div><br></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Oct 5, 2018 at 1:59 AM David P <<a href="mailto:davidswalkabout@gmail.com" target="_blank" rel="noreferrer">davidswalkabout@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">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.<div dir="auto"><br></div><div dir="auto">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?</div></div>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Astricon is coming up October 9-11! Signup is available at: <a href="https://www.asterisk.org/community/astricon-user-conference" rel="noreferrer noreferrer" target="_blank">https://www.asterisk.org/community/astricon-user-conference</a><br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer noreferrer" target="_blank">https://community.asterisk.org/</a><br>
<br>
New to Asterisk? Start here:<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Astricon is coming up October 9-11! Signup is available at: <a href="https://www.asterisk.org/community/astricon-user-conference" rel="noreferrer noreferrer" target="_blank">https://www.asterisk.org/community/astricon-user-conference</a><br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer noreferrer" target="_blank">https://community.asterisk.org/</a><br>
<br>
New to Asterisk? Start here:<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div>