Skip to content

Instantly share code, notes, and snippets.

@ricardofiorani
Last active August 29, 2015 13:57
Show Gist options
  • Save ricardofiorani/9492473 to your computer and use it in GitHub Desktop.
Save ricardofiorani/9492473 to your computer and use it in GitHub Desktop.
Problema com SSL
<?php
$ch = curl_init('https://www.squidfacil.com.br/uploads/produtos/fotos/grande/7115-acnotebook-cooler-slim-duplo-1354105751.jpg');
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);
$raw = curl_exec($ch);
/* Debugs */
echo '<pre>';
var_dump(curl_errno($ch));
echo '</pre>';
echo '<pre>';
var_dump(curl_error($ch));
echo '</pre>';
die();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment