FetchURLFile

From FreeSWITCH Wiki
Jump to: navigation, search

Contents

Description

Fetches the content of a webpage into a file, which is safer than into memory directly since you may not know how much memory it will take until after it has loaded.

Synopsis

fetchURLFile(url,file)
  • url - any cURL supported URL.
  • file - the file including path to store the response into.

Example

fetchURLFile("http://www.somewhere.tld/somepage.html","/tmp/somepage.html");

See Also