Because curl does not extract php data

0

Good I have a doubt because curl does not extract the data of this url that part of the code is bad or that it lacks to work.

<?php

$url = 'https://api.youtube6download.top/api/?format=JSON&id=i62Zjga8JOM';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url );
curl_setopt($ch,CURLOPT_HEADER,0); //visualizar ñ y acentos.
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true );
curl_setopt($ch, CURLOPT_ENCODING, "gzip,deflate"); //(aceptación de codificación gzip)   
$response = curl_exec($ch); //almacena el response de la pagina.

curl_close($ch);

echo $response;
?>

I hope your help. Thank you.

    
asked by BotXtrem Solutions 18.01.2018 в 02:39
source

0 answers