Skip to content

Instantly share code, notes, and snippets.

@allanfreitas
Created September 19, 2016 04:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allanfreitas/eb827a3319b561f1ce1a0f37e47cca4b to your computer and use it in GitHub Desktop.
Save allanfreitas/eb827a3319b561f1ce1a0f37e47cca4b to your computer and use it in GitHub Desktop.
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