KyranRana / cloudflare-bypass

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

Notice: Undefined index: request_header in \src\main\CFCurlImpl.php on line 92 #138

Closed yumedia closed 4 years ago

yumedia commented 5 years ago

Sometimes I got this error

Notice: Undefined index: request_header in \src\main\CFCurlImpl.php on line 92

KyranRana commented 5 years ago

You need to set CURLINFO_HEADER_OUT to true when requesting the webpage. That is one of the prerequisites when using cURL.

Laky-64 commented 5 years ago

Kyranrana you can help me?

yumedia commented 5 years ago

I'm get these error sometimes also (request same web, but different slug, example: domain.com, domain.com/slug/slug, domain.com/slug/slug2 )

Notice: Undefined offset: 1 in \src\main\Model\UAM\UAMPageFormParams.php on line 35

Notice: Undefined offset: 1 in \src\main\Model\UAM\UAMPageChallengeCode.php on line 53

KyranRana commented 5 years ago

Try with version 3.3.0 ?

KyranRana commented 5 years ago

Closed due to inactivity.

nimah79 commented 5 years ago

Still have this issue:

Undefined index: request_header in src/main/CFCurlImpl.php on line 117

yumedia commented 5 years ago

If use curl_setopt($ch, CURLOPT_COOKIEJAR, "cookies.txt"); and curl_setopt($ch, CURLOPT_COOKIEFILE, "cookies.txt"); still get

Notice: Undefined offset: 1 in \src\main\Model\UAM\UAMPageFormParams.php on line 35

Notice: Undefined offset: 1 in \src\main\Model\UAM\UAMPageChallengeCode.php on line 53

KyranRana commented 5 years ago

Can you give me the full code you are using to perform the request?