KyranRana / cloudflare-bypass

A new and improved PHP library which bypasses the Cloudflare IUAM page using cURL
MIT License
275 stars 98 forks source link

dont work with 7.3.3 - solution #163

Open vb6rocod opened 4 years ago

vb6rocod commented 4 years ago

I test with different version with 5.6.39 work without "CURLOPT_SSL_CIPHER_LIST" with 7.3.1 must add "CURLOPT_SSL_CIPHER_LIST" with 7.3.3 dont work. If I add curl_setopt($ch, CURLOPT_SSLVERSION,CURL_SSLVERSION_TLSv1_3) work. CURL_SSLVERSION_TLSv1_3 is not defined in php < 7, I make this code if (defined('CURL_SSLVERSION_TLSv1_3')) $ssl_version=7; else $ssl_version=0; and add curl_setopt($ch, CURLOPT_SSLVERSION,$ssl_version);

Maybe exist a better solution ?