Did you try like this?
<?PHP
$details1=json_decode(file_get_contents("http://2strok.com/download/download.json"));
$details2=json_decode(file_get_contents($details1->data));
header("Location: ".$details2->data);
10
solved How to get the result of json into the header