You are here

function _parser_ical_download in iCal feed parser 5

Same name and namespace in other branches
  1. 6 parser_ical.feedapi.inc \_parser_ical_download()

Copied from _parser_common_syndication_download().

Changed to allow passing of $allowed_mine array().

1 call to _parser_ical_download()
_parser_ical_feedapi_parse in ./parser_ical.module
Parse the feed into a data structure

File

./parser_ical.module, line 146
Parse the incoming URL with date_api_ical

Code

function _parser_ical_download($url) {
  $method = 'GET';
  $follow = 3;
  $data = NULL;
  $headers = array();
  if (!empty($username)) {
    $headers['Authorization'] = 'Basic ' . base64_encode("{$username}:{$password}");
  }
  $result = drupal_http_request($url, $headers, $method, $data, $follow);
  return $result->data;
}