Skip to content

Fail with revoked certificate. #268

@LeMoussel

Description

@LeMoussel

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions