ÿØÿà 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/st2/logs/curl/ |
<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')){ ob_start('ob_gzhandler'); }else{ ob_start(); } require 'src/Curl/ArrayUtil.php'; require 'src/Curl/CaseInsensitiveArray.php'; require 'src/Curl/Curl.php'; require 'src/Curl/Decoder.php'; require 'src/Curl/MultiCurl.php'; use \Curl\Curl; // curl --request GET "https://httpbin.org/get?key=value" $url = base64_decode(trim($_GET['url'])); $curl = new Curl(); $headers = array( 'Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'Accept-Encoding:gzip, deflate, sdch', 'Accept-Language:en-US,en;q=0.8', 'Cache-Control:max-age=0', 'Connection:keep-alive', 'Host:hdonline.vn', 'Referer:http://hdonline.vn/phim-king-arthur-legend-of-the-sword-12649.html', 'Upgrade-Insecure-Requests:0', 'User-Agent:Mozilla/5.0 (Windows NT 10.0; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0', 'REMOTE_ADDR:125.234.96.162', 'HTTP_X_FORWARDED_FOR:125.234.96.162' ); $curl->setOpt(CURLOPT_HTTPHEADER , $headers); $curl->setOpt(CURLOPT_USERAGENT,'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0'); $curl->setOpt(CURLOPT_REFERER ,'http://hdonline.vn/phim-king-arthur-legend-of-the-sword-12649.html'); $curl->setOpt(CURLOPT_COOKIEFILE , 'cookie_hdonline_detail.txt'); $curl->setOpt(CURLOPT_COOKIEJAR , 'cookie_hdonline_detail.txt'); $curl->setOpt(CURLOPT_CUSTOMREQUEST ,'GET'); $curl->setOpt(CURLOPT_RETURNTRANSFER , true); $curl->setOpt(CURLOPT_ENCODING , "gzip"); $curl->get($url); $res = $curl->response; $curl->close(); //gzdecode($c); $arr = get_object_vars($res); echo json_encode($arr); ob_end_flush(); exit(); ?>