Download size limit CURLOPT_RANGE not work?
<p>I have function to download remote file based on offset and limit.</p>

<pre><code>function get_part_file($url, $offset, $limit){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RANGE, ''.$offset.'-'.$limit.'');
curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
curl_close($ch);
return $result;
}
</code></pre>

<p>I wanna download 1024 bytes from end but this function download whole file. So, how can I do that?</p>
