Created
September 19, 2016 04:11
-
-
Save allanfreitas/eb827a3319b561f1ce1a0f37e47cca4b to your computer and use it in GitHub Desktop.
Erro Biblioteca TCPDF com HTTPS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//- | |
$cs = curl_init(); // curl session | |
curl_setopt($cs, CURLOPT_URL, "URL_DO_ARQUIVO"); | |
//...OUTRAS OPÇÕES... | |
/** | |
* Alteração efetuada na Biblioteca para permitir o request de | |
* HTTPS sem verificar o certificado | |
*/ | |
curl_setopt($cs, CURLOPT_SSL_VERIFYPEER, 0); | |
curl_setopt($cs, CURLOPT_SSL_VERIFYHOST, 0); | |
//...O RESTANTE...não importa :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment