Ver Mensaje Individual
  #9  
Antiguo 16-10-2018
Ulises Ulises is offline
Miembro
 
Registrado: may 2003
Ubicación: Santiago de Chile
Posts: 82
Reputación: 21
Ulises Va por buen camino
Hola de nuevo...

Mi código:

Código:
ini_set("display_errors", 1);
error_reporting(-1);
$url = "https://www.ventas.blobel.cl/jsonOrden/38512/e5ab4853e6b01669cb076f3f4d4209f2";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_VERBOSE, true); 
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,false);
curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
$errors = curl_error($ch);
$response = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
var_dump($response);
var_dump($errors);
echo $data;

Sale esto ahora:

int 0
string 'Unknown SSL protocol error in connection to www.ventas.blobel.cl:443 ' (length=69)

Algo sale...
Responder Con Cita