-
Notifications
You must be signed in to change notification settings - Fork 503
Open
Labels
Description
Don't get SSL error with revoked certificate
Test:
try {
$request = Requests::get('https://revoked.badssl.com/', array());
echo $request->url.PHP_EOL;
echo "\tSSL OK HTTP Status code: ".$request->status_code.' '.PHP_EOL;
}
catch (Requests_Exception $e) {
echo curl_getinfo($e->getData(), CURLINFO_EFFECTIVE_URL).PHP_EOL;
echo "\tSSL Error: ".$e->getType().' '.curl_error($e->getData()).PHP_EOL;
}
Result:
SSL OK HTTP Status code: 200
Expected:
SSL error revoked certificate