Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc37ffd5

Browse files
committed
Turned off cert verification. Like curl -k. Causeing problems for users.
1 parent0ba1d6f commitc37ffd5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

‎Zencoder.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ class ZencoderCURL {
173173
CURLOPT_HTTPHEADER =>array("Content-Type: application/json","Accept: application/json"),
174174
CURLOPT_CONNECTTIMEOUT =>0,// Time in seconds to timeout send request. 0 is no timeout.
175175
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
176179
);
177180

178181
var$connected;
@@ -212,11 +215,6 @@ function ZencoderCURL($url, $json, $options = array()) {
212215

213216
// Check for cURL error
214217
if (curl_errno($ch)) {
215-
// if (curl) {
216-
//
217-
// } else {
218-
//
219-
// }
220218
$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>';
221219
$this->connected =false;
222220
}else {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp