login | register
Tue 02 of Dec, 2008 [15:27 UTC]

voip-info.org

Discuss [1] History

Asterisk func curl

Created by: murf,Last modification on Sat 14 of Jan, 2006 [05:37 UTC]

Synopsis:

 Retrieves the contents of a URL

Description:

 CURL(url[|post-data])
 
 url       - URL to retrieve
 post-data - Optional data to send as a POST (GET is default action)


Notes

  • *CLI> show function CURL

Return value

Returns the resulting string/page.

Example

exten => s,1,Set(foo=${CURL(http://somewhere.com/somepage.html?x=5&y=4)})


See also



Comments

Comments Filter
222

333configure for curl

by lingolep, Thursday 15 of May, 2008 [10:05:12 UTC]
Make sure curl is on your system (Ubuntu 8.04 server users can run apt-get install libcurl4-dev)

Then in the asterisk sources re-run the ./configure script and check if it detects curl.

Run make menuselect and look under the Dialplan Functions for the func_curl entry, making sure there are no XXX's there before compiling and installing asterisk.

These steps were needed for Asterisk sources arround ~1.4.19.2