You are here

function _parser_ical_download in iCal feed parser 6

Same name and namespace in other branches
  1. 5 parser_ical.module \_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.feedapi.inc
Parse the feed into a data structure

File

./parser_ical.feedapi.inc, line 104
parser_ical include for actually parsing feed.

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;
}