[Freeswitch-users] luacurl vs io.popen("curl ...") vs api:executeString( "curl ..")

Rupa Schomaker rupa at rupa.com
Wed Jan 20 18:03:39 PST 2010


1 and 2  both use libcurl.  2 might be better for you IF it doesn't
introduce memory leaks or other instabilities.  mod_curl is just a simple
wrapper around libcurl so nothing special.

On Wed, Jan 20, 2010 at 7:38 PM, Tom Carlson <tom at tomcarlson.com> wrote:

> I was hoping that those knowledgeable in these things could tell me,
> strategically, which curl method would be most cpu friendly for me to use to
> access my restful web service.
>
>
>    1. Use freeSWITCH's mod_curl and issue an api:executeString( "curl ..")
>    command
>    2. Use the luacurl library from http://luaforge.net/projects/luacurl/
>    3. Use linux's curl through an io.popen() command
>
>
> I was intending to use the luacurl library, but it occured to me that
> mod_curl might have been specially engineered to provide better efficiency.
>
> Thanks.
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>


-- 
-Rupa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100120/bde08835/attachment-0002.html 


More information about the FreeSWITCH-users mailing list