[asterisk-users] CURL function with SSL

Danny Nicholas danny at debsinc.com
Fri Aug 14 15:41:25 CDT 2009


This gets into a bit of a "hack", but you could do a quick-and-dirty AGI to
do the WGET then set the variable based on what you got back.  If you did it
in perl, you could actually use LWP instead of WGET.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at 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)...
>
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Wenbin Zhang
> Sent: Friday, August 14, 2009 3:09 PM
> To: Asterisk Users 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:
>>>     
>>>       
>>>> 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 cert. That's
>>>> probably because I didn't tell it where the root certs were... but
>>>>         
> either
>   
>>>> way.
>>>>       
>>>>         
>>> Thanks David. Your help is appreciated. But can I ask you one more
>>> thing? I am wondering where I should set CURLOPT_SSL_VERIFYPEER to
FALSE?
>>>  Thank you very mcuh.
>>>     
>>>       
>> I'm not aware that you can set that independently right now.  In 1.6.2,
>>     
> it's
>   
>> at least a possibility, with the introduction of the CURLOPT() dialplan
>> function, but even then, that's not one of the included options (yet).
>> Starting with the first release candidate, though, it should be.
>>
>>   
>>     
> Thank you very much Tilghman. I am using asterisk 1.4 version. So if 
> CURL can not get the data from the SSL server, is there any other way to 
> make this purpose done? Thank you very much.
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2009 - October 13 - 15 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2009 - October 13 - 15 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
>   
Thanks for replying Danny. But I wanna set a variable to be the value 
which is passed by SSL server. I don't think SET(CURL=${wget(...)}) can 
work. Do you have more info?Thank you very much.

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list