Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated to GIT-16-3746b1e

...

Code Block
titleExample: Displaying contents of a page
linenumberstrue
languagetext

			exten => s,1,Verbose(0, ${CURL(http://localhost:8088/static/astman.css)})
			

When this function is written to, a HTTP GET will be used to retrieve the contents of the provided url. The value written to the function specifies the destination file of the cURL'd resource.

Code Block
titleExample: Retrieving a file
linenumberstrue
languagetext

			exten => s,1,Set(CURL(http://localhost:8088/static/astman.css)=/var/spool/asterisk/tmp/astman.css))
			
Info
titleNote

If live_dangerously in asterisk.conf is set to no, this function can only be written to from the dialplan, and not directly from external protocols. Read operations are unaffected.

...

This documentation was imported from Asterisk Version GIT-16-324a6093746b1e