* @file include/network.php
*/
+use \Friendica\Core\Config;
+
require_once("include/xml.php");
require_once('include/Probe.php');
@curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
@curl_setopt($ch, CURLOPT_USERAGENT, $a->get_useragent());
-
+ $range = intval(Config::get('system', 'curl_range_bytes', 0));
+ if ($range > 0) {
+ @curl_setopt($ch, CURLOPT_RANGE, '0-'.$range);
+ }
if(x($opts,'headers')){
@curl_setopt($ch, CURLOPT_HTTPHEADER, $opts['headers']);