protected static function wget($url, $cacheDir, $config)
	{
		$options = [
			'headers' => (isset($config['header'])) ? (array) $config['header'] : []
		];

		return @self::getHttpClient($cacheDir)->get($url, $options);
	}
protected static function wget($url, $cacheDir, $config)
	{
		$options = [
			'headers' => (isset($config['header'])) ? (array) $config['header'] : []
		];

		return @self::getHttpClient($cacheDir)->get($url, $options);
	}
protected static function wget ( $ url , $ cacheDir , $ config ) { $ options = [ 'headers' => ( isset ( $ config [ 'header' ] ) ) ? ( array ) $ config [ 'header' ] : [ ] ] ; return @ self :: getHttpClient ( $ cacheDir ) -> get ( $ url , $ options ) ; }
Retrieve external content

@param  string      $url      URL
@param  string|null $cacheDir Path to the cache directory
@param  array       $config   Scraping config
@return string                Response body
Retrieve external content