[asterisk-users] CURL to post application/json
nasir at ictinnovations.com
Thu Oct 4 23:43:43 CDT 2018
My mistake, CURLOPT(header) is only to retrieve headers, not to sent. sorry.
ICTBroadcast - an Auto Dialer software for ITSP
SMS, Fax and Voice broadcasting & Inbound / Outbound Campaigns
On Fri, Oct 5, 2018 at 8:53 AM Nasir Iqbal <nasir at ictinnovations.com> wrote:
> Hi David,
> Have you tried CURLOPT function.
> Set(CURLOPT(header)=Content-Type: application/json)
> Nasir Iqbal
> ICTBroadcast - an Auto Dialer software for ITSP
> SMS, Fax and Voice broadcasting & Inbound / Outbound Campaigns
> On Fri, Oct 5, 2018 at 1:59 AM David P <davidswalkabout at gmail.com> wrote:
>> 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?
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>> Astricon is coming up October 9-11! Signup is available at:
>> Check out the new Asterisk community forum at:
>> New to Asterisk? Start here:
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the asterisk-users