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

I have error getDataType() on null in master (2019-11-28) #152

Closed jokecup closed 4 years ago

jokecup commented 4 years ago

20191130_042245

drps commented 4 years ago

CFCurlTest.php is works for me for https://predb.me/?search=720p

can you show cloudflare page content which causes this error?

jokecup commented 4 years ago

https://jsfiddle.net/wpcam782/

drps commented 4 years ago

i dont know why but for some reason your script puts empty string to UAMPageAttributes constructor as a page content here

does curl_exec works as expected?

jokecup commented 4 years ago

I try change here to curl_setopt($curlHandle, CURLOPT_SSLVERSION, 4); it works for me