From 50d5c2396709578a72ca11e3aa24145c873705e6 Mon Sep 17 00:00:00 2001 From: Athlon1600 Date: Sat, 21 Sep 2019 13:34:08 -0400 Subject: [PATCH] misc changes --- composer.json | 16 ++++++++++------ src/PdfApi.php | 3 +++ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index fe66b84..3cfff09 100644 --- a/composer.json +++ b/composer.json @@ -1,9 +1,13 @@ { - "name": "ctbuh/wkhtmltopdf-api-php-client", - "require": {}, - "autoload": { - "psr-4": { - "ctbuh\\PdfApi\\": "src/" - } + "name": "ctbuh/wkhtmltopdf-api-php-client", + "version": "1.0.1", + "require": { + "ext-curl": "*", + "ext-json": "*" + }, + "autoload": { + "psr-4": { + "ctbuh\\PdfApi\\": "src/" } + } } diff --git a/src/PdfApi.php b/src/PdfApi.php index 583a785..fb6ce2b 100644 --- a/src/PdfApi.php +++ b/src/PdfApi.php @@ -43,6 +43,9 @@ public function convert($input, $options = array(), $raw_response = false) curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 300); // default curl_setopt($ch, CURLOPT_TIMEOUT, 30); // no timeout is default + // curl: (60) SSL certificate problem: unable to get local issuer certificate + // curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($params)); curl_setopt($ch, CURLOPT_HTTPHEADER, array( "Cache-Control: no-cache",