Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Uncaught exception 'Guzzle\Http\Exception\CurlException' with message
- '[curl] 35: error:1407742E:SSL
- routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
- [url] https://somesite.com
- <?php
- use GoutteClient;
- $client = new Client();
- $guzzle = $client->getClient();
- $guzzle->setConfig(
- array(
- 'curl.CURLOPT_SSL_VERIFYHOST' => false,
- 'curl.CURLOPT_SSL_VERIFYPEER' => false,
- )
- );
- $client->setClient($guzzle);
- $crawler = $client->request('GET', 'https://somesite.com'); // IT FAILS HERE
- [curl] 35: Unknown SSL protocol error in connection to website.com:443
- use GoutteClient;
- $client = new Client();
- $guzzle = new GuzzleClient('https://somesite.com', array(
- 'curl.options' => array(
- 'CURLOPT_SSLVERSION' => 1,
- )
- ));
- $client->setClient($guzzle);
- $crawler = $client->request('GET', 'https://somesite.com');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement