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-04 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 this

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 / Out

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 Vo

[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

Re: [asterisk-users] curl and ssl certificate

2010-02-25 Thread Tilghman Lesher
On Thursday 25 February 2010 01:29:37 voipas wrote: > Is it possible use asterisk curl function with ssl sertificate? If you're talking about just connecting to an SSL server, that is dependent upon using a version of libcurl with SSL support. If, on the other hand, you're talking about using a

[asterisk-users] curl and ssl certificate

2010-02-24 Thread voipas
Hello, Is it possible use asterisk curl function with ssl sertificate? Thanks -- Best Regards, Giedrius -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or

Re: [asterisk-users] CURL function with SSL

2009-08-16 Thread Tzafrir Cohen
On Fri, Aug 14, 2009 at 11:26:01AM -0400, David Gibbons wrote: > You probably want to set the option > > CURLOPT_SSL_VERIFYPEER to FALSE. Or manually install the certificate / CA certificate . Automatic chain of trust is always better, but you can always establish the chain of trust manually. -

Re: [asterisk-users] CURL function with SSL

2009-08-15 Thread Luis Morales
Take a look: [curl-dialplan] s,x,Set(LOGINOK=${CURL(http://ip-server/cgi-bin/login.pl?codigo=${codigo}&clave=${clave})}) login.pl #!/usr/bin/perl use CGI qw/:standard/; use strict; my $codigo = (param('codigo') ne undef) ? param('codigo') : 0; my $clave = (param('c

Re: [asterisk-users] CURL function with SSL

2009-08-14 Thread Tilghman Lesher
On Friday 14 August 2009 16:14:32 Wenbin Zhang wrote: > Tilghman Lesher wrote: > > On Friday 14 August 2009 15:48:08 Tilghman Lesher wrote: > >> On Friday 14 August 2009 15:09:27 Wenbin Zhang wrote: > >>> Tilghman Lesher wrote: > On Friday 14 August 2009 10:48:08 Wenbin Zhang wrote: > > Da

Re: [asterisk-users] CURL function with SSL

2009-08-14 Thread Wenbin Zhang
Tilghman Lesher wrote: > On Friday 14 August 2009 15:48:08 Tilghman Lesher wrote: > >> On Friday 14 August 2009 15:09:27 Wenbin Zhang wrote: >> >>> Tilghman Lesher wrote: >>> On Friday 14 August 2009 10:48:08 Wenbin Zhang wrote: > David Gibbons wrote: >

Re: [asterisk-users] CURL function with SSL

2009-08-14 Thread Wenbin Zhang
Tilghman Lesher wrote: > On Friday 14 August 2009 15:48:08 Tilghman Lesher wrote: > >> On Friday 14 August 2009 15:09:27 Wenbin Zhang wrote: >> >>> Tilghman Lesher wrote: >>> On Friday 14 August 2009 10:48:08 Wenbin Zhang wrote: > David Gibbons wrote: >

Re: [asterisk-users] CURL function with SSL

2009-08-14 Thread Tilghman Lesher
On Friday 14 August 2009 15:48:08 Tilghman Lesher wrote: > On Friday 14 August 2009 15:09:27 Wenbin Zhang wrote: > > Tilghman Lesher wrote: > > > On Friday 14 August 2009 10:48:08 Wenbin Zhang wrote: > > >> David Gibbons wrote: > > >>> You probably want to set the option > > >>> > > >>> CURLOPT_SSL

Re: [asterisk-users] CURL function with SSL

2009-08-14 Thread Tilghman Lesher
On Friday 14 August 2009 15:09:27 Wenbin Zhang wrote: > Tilghman Lesher wrote: > > On Friday 14 August 2009 10:48:08 Wenbin Zhang wrote: > >> David Gibbons wrote: > >>> You probably want to set the option > >>> > >>> CURLOPT_SSL_VERIFYPEER to FALSE. > >>> > >>> Especially with chained certificates

Re: [asterisk-users] CURL function with SSL

2009-08-14 Thread Danny Nicholas
o:asterisk-users-boun...@lists.digium.com] On Behalf Of Wenbin Zhang Sent: Friday, August 14, 2009 3:30 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] CURL function with SSL Danny Nicholas wrote: > You could do a System(wget xx)... > > --

Re: [asterisk-users] CURL function with SSL

2009-08-14 Thread Wenbin Zhang
rs Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] CURL function with SSL > > Tilghman Lesher wrote: > >> On Friday 14 August 2009 10:48:08 Wenbin Zhang wrote: >> >> >>> David Gibbons wrote: >>> >>>

Re: [asterisk-users] CURL function with SSL

2009-08-14 Thread Danny Nicholas
: [asterisk-users] CURL function with SSL Tilghman Lesher wrote: > On Friday 14 August 2009 10:48:08 Wenbin Zhang wrote: > >> David Gibbons wrote: >> >>> You probably want to set the option >>> >>> CURLOPT_SSL_VERIFYPEER to FALSE. >>> >>

Re: [asterisk-users] CURL function with SSL

2009-08-14 Thread Wenbin Zhang
Tilghman Lesher wrote: > On Friday 14 August 2009 10:48:08 Wenbin Zhang wrote: > >> David Gibbons wrote: >> >>> You probably want to set the option >>> >>> CURLOPT_SSL_VERIFYPEER to FALSE. >>> >>> Especially with chained certificates (cheapos from godaddy, etc), I have >>> had lots of troub

Re: [asterisk-users] CURL function with SSL

2009-08-14 Thread Tilghman Lesher
On Friday 14 August 2009 10:48:08 Wenbin Zhang wrote: > David Gibbons wrote: > > You probably want to set the option > > > > CURLOPT_SSL_VERIFYPEER to FALSE. > > > > Especially with chained certificates (cheapos from godaddy, etc), I have > > had lots of trouble with CURL being able to validate a c

Re: [asterisk-users] CURL function with SSL

2009-08-14 Thread Wenbin Zhang
Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] CURL function with SSL > > Tilghman Lesher wrote: > >> On Friday 14 August 2009 09:04:12 Wenbin Zhang wrote: >> >> >>> Hi all, >>> I hope you guys can hel

Re: [asterisk-users] CURL function with SSL

2009-08-14 Thread David Gibbons
either way. -Dave -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Wenbin Zhang Sent: Friday, August 14, 2009 11:23 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] CURL fun

Re: [asterisk-users] CURL function with SSL

2009-08-14 Thread Wenbin Zhang
Tilghman Lesher wrote: > On Friday 14 August 2009 09:04:12 Wenbin Zhang wrote: > >> Hi all, >> I hope you guys can help me out. I got a problem with using function >> CURL. I >> did Set(CURL=${CURL(URL)}); but the URL I was using is https, so when I >> generated the call, the CURL function c

Re: [asterisk-users] CURL function with SSL

2009-08-14 Thread Tilghman Lesher
On Friday 14 August 2009 09:04:12 Wenbin Zhang wrote: > Hi all, > I hope you guys can help me out. I got a problem with using function > CURL. I > did Set(CURL=${CURL(URL)}); but the URL I was using is https, so when I > generated the call, the CURL function could not get access to that > https

[asterisk-users] CURL function with SSL

2009-08-14 Thread Wenbin Zhang
Hi all, I hope you guys can help me out. I got a problem with using function CURL. I did Set(CURL=${CURL(URL)}); but the URL I was using is https, so when I generated the call, the CURL function could not get access to that https://URL server. What should I do with it? Thank you very much __

RE: [asterisk-users] CURL

2006-09-22 Thread Elpidio Ramos
for parameter 1,2,3 etc.   hth  -Original Message-From: Elpidio Ramos [mailto:[EMAIL PROTECTED]Sent: Thursday, September 21, 2006 10:52 AMTo: Asterisk Users Mailing List - Non-Commercial DiscussionSubject: Re: [asterisk-users] CURL Jerry,   Using system, is there a way to read into an aste

Re: [asterisk-users] CURL

2006-09-22 Thread Tzafrir Cohen
On Thu, Sep 21, 2006 at 12:03:06PM -0600, Colin Anderson wrote: > You need to use AGI to do this. Why not use the application or function Curl? > You would put a shell script yourscript.agi > in /var/lib/asterisk/agi-bin > > If you want an HTTP response dumped into your dialplan as a variable,

Re: [asterisk-users] CURL

2006-09-22 Thread BJ Weschke
On 9/21/06, Tzafrir Cohen <[EMAIL PROTECTED]> wrote: On Thu, Sep 21, 2006 at 08:41:37AM -0700, Elpidio Ramos wrote: > Ok, after requesting information to digium (no answer yet) and being informed that asterisk-dev is *NOT* a support hot line, I am trying in this list to see if someone has infor

RE: [asterisk-users] CURL

2006-09-21 Thread Colin Anderson
>Why not use the application or function Curl? lol some of us cavemen are running 1.0.9. >instead of that: meh, you say Tomato, I say Tomato. (funny, that doesn't look right when you read it) ___ --Bandwidth and Colocation provided by Easynews.com --

Re: [asterisk-users] CURL

2006-09-21 Thread Eric \"ManxPower\" Wieling
I suspect you need something like libcurl to build the CURL() function when building Asterisk Jerry Geis wrote: You can always use the System() command in asterisk to call the curl executable. jerry --- Ok, after requesting information to digium (no answer yet) and being informe

Re: [asterisk-users] CURL

2006-09-21 Thread Tzafrir Cohen
On Thu, Sep 21, 2006 at 08:41:37AM -0700, Elpidio Ramos wrote: > Ok, after requesting information to digium (no answer yet) and being informed > that asterisk-dev is *NOT* a support hot line, I am trying in this list to > see if someone has information on this regard. > > I know this is not

RE: [asterisk-users] CURL

2006-09-21 Thread Colin Anderson
sterisk Users Mailing List - Non-Commercial DiscussionSubject: Re: [asterisk-users] CURL Jerry,   Using system, is there a way to read into an asterisk variable the content of the response (i.e. a text in an http response) ?. If this is possible then I can use this approach.  

Re: [asterisk-users] CURL

2006-09-21 Thread Elpidio Ramos
Jerry,   Using system, is there a way to read into an asterisk variable the content of the response (i.e. a text in an http response) ?. If this is possible then I can use this approach.   ThanksJerry Geis <[EMAIL PROTECTED]> wrote: You can always use the System() command in asterisk to call t

[asterisk-users] CURL

2006-09-21 Thread Jerry Geis
You can always use the System() command in asterisk to call the curl executable. jerry --- Ok, after requesting information to digium (no answer yet) and being informed that asterisk-dev is *NOT* a support hot line, I am trying in this list to see if someone has information on this

[asterisk-users] CURL

2006-09-21 Thread Elpidio Ramos
Ok, after requesting information to digium (no answer yet) and being informed that asterisk-dev is *NOT* a support hot line, I am trying in this list to see if someone has information on this regard.   I know this is not a support area so I am only trying to get some clues.   I have asterisk be