We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent0ba1d6f commitc37ffd5Copy full SHA for c37ffd5
Zencoder.php
@@ -173,6 +173,9 @@ class ZencoderCURL {
173
CURLOPT_HTTPHEADER =>array("Content-Type: application/json","Accept: application/json"),
174
CURLOPT_CONNECTTIMEOUT =>0,// Time in seconds to timeout send request. 0 is no timeout.
175
CURLOPT_FOLLOWLOCATION =>1,// Follow redirects.
176
+// Dealing with the certificate. Still a sketchy area.
177
+CURLOPT_SSL_VERIFYPEER =>0,// Turn off verification, curl -k or --insecure
178
+CURLOPT_SSL_VERIFYHOST =>0
179
);
180
181
var$connected;
@@ -212,11 +215,6 @@ function ZencoderCURL($url, $json, $options = array()) {
212
215
213
216
// Check for cURL error
214
217
if (curl_errno($ch)) {
-// if (curl) {
-//
-// } else {
218
219
-// }
220
$this->error ='cURL connection error ('.curl_errno($ch).'):'.htmlspecialchars(curl_error($ch)).' <a href="http://www.google.com/search?q='.urlencode("curl error".curl_error($ch)).'">Search</a>';
221
$this->connected =false;
222
}else {