ÿØÿà JFIF ÿÛ „ ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/img.123vid.top/vendor/kyranrana/src/test/ |
<?php use CloudflareBypass\CFCurlImpl; use CloudflareBypass\Model\UAMOptions; use PHPUnit\Framework\TestCase; class FunctionalTest extends TestCase { public function testMedium() { $url = "http://medium.com"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLINFO_HEADER_OUT, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Accept-Language: *', 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0', 'Accept: */*', 'Upgrade-Insecure-Requests: 1' )); $cfCurl = new CFCurlImpl(); $cfOptions = new UAMOptions(); $this->assertContains('Medium – Get smarter about what matters to you', $cfCurl->exec($ch, $cfOptions)); } public function testTorrentz() { $url = "https://torrentz2.eu/"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLINFO_HEADER_OUT, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Accept-Language: *', 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0', 'Accept: */*', 'Upgrade-Insecure-Requests: 1' )); $cfCurl = new CFCurlImpl(); $cfOptions = new UAMOptions(); $this->assertContains('Torrentz2 Search Engine', $cfCurl->exec($ch, $cfOptions)); } }