Esempio n. 1
0
 /**
  * Reads the file or url $url and returns the content
  * If you are having trouble with proxys when reading URLs
  * you can configure your way out of that
  * with settings like $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlUse'] etc.
  *
  * @param string $url File/URL to read
  * @param int $includeHeader Whether the HTTP header should be fetched or not.
  * @param array|vool $requestHeaders HTTP headers to be used in the request
  * @param array|bool $report Error code/message and response meta data
  *
  * @return mixed The content from the resource or FALSE
  */
 public static function getUrl($url, $includeHeader = 0, $requestHeaders = FALSE, &$report = NULL)
 {
     tx_rnbase::load('tx_rnbase_util_Network');
     return tx_rnbase_util_Network::getUrl($url, $includeHeader, $requestHeaders, $report);
 }