Instantly share code, notes, and snippets.

Embed
What would you like to do?
Erro Biblioteca TCPDF com HTTPS
<?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