Skip to content

Commit 9b364dd

Browse files
committed
Fixes #59 - hack around broken SSL certs on saucelabs
1 parent 8e46be1 commit 9b364dd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/WebDriver/SauceLabs/SauceRest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ protected function execute($requestMethod, $url, $parameters = null)
6969
$extraOptions = array(
7070
CURLOPT_HTTPAUTH => CURLAUTH_BASIC,
7171
CURLOPT_USERPWD => $this->userId . ':' . $this->accessKey,
72+
73+
// don't verify SSL certificates
74+
CURLOPT_SSL_VERIFYPEER => false,
75+
CURLOPT_SSL_VERIFYHOST => false,
76+
77+
CURLOPT_HTTPHEADER => Array ('Expect:'),
7278
);
7379

7480
$url = 'https://saucelabs.com/rest/v1/' . $url;

0 commit comments

Comments
 (0)