public function FeedsHTTPFetcherResult::getRaw in Feeds 8.2
Overrides FeedsFetcherResult::getRaw();
Overrides FeedsFetcherResult::getRaw
File
- lib/
Drupal/ feeds/ FeedsHTTPFetcherResult.php, line 24
Class
- FeedsHTTPFetcherResult
- Result of FeedsHTTPFetcher::fetch().
Namespace
Drupal\feedsCode
public function getRaw() {
feeds_include_library('http_request.inc', 'http_request');
$result = http_request_get($this->url, NULL, NULL, NULL, $this->timeout);
if (!in_array($result->code, array(
200,
201,
202,
203,
204,
205,
206,
))) {
throw new \Exception(t('Download of @url failed with code !code.', array(
'@url' => $this->url,
'!code' => $result->code,
)));
}
return $this
->sanitizeRaw($result->data);
}