Re: [asterisk-users] CURL to post application/json

2018-10-06 Thread David P
Thanks, Nasir, I'll see if that allows us to avoid SHELL. On Fri, 5 Oct 2018, 4:53 pm Nasir Iqbal, wrote: > Hi David, > > Have you tried CURLOPT function. > i.e > Set(CURLOPT(header)=Content-Type: application/json) > > Regards > > Nasir Iqbal > > ICTBroadcast - an Auto Dialer software for ITSP

[asterisk-users] CURL to post application/json (David P)

2018-10-05 Thread Stefan Viljoen
>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. Hi David If you've got if fixed that way, great. Just thought I'd comment and share the scripts / manner we use

Re: [asterisk-users] CURL to post application/json

2018-10-04 Thread Nasir Iqbal
My mistake, CURLOPT(header) is only to retrieve headers, not to sent. sorry. Nasir Iqbal ICTBroadcast - an Auto Dialer software for ITSP SMS, Fax and Voice broadcasting & Inbound /

Re: [asterisk-users] CURL to post application/json

2018-10-04 Thread Nasir Iqbal
Hi David, Have you tried CURLOPT function. i.e Set(CURLOPT(header)=Content-Type: application/json) Regards Nasir Iqbal ICTBroadcast - an Auto Dialer software for ITSP SMS, Fax and

[asterisk-users] CURL to post application/json

2018-10-04 Thread David P
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