html - How Get the source code of https page ? -
i want https page source code , using down code ;
require_once 'simple_html_dom.php'; ob_start(); session_start(); set_time_limit(360000000); error_reporting(1); $url = "https://www.superbahis833.com/services/coupontemplate.mvc/getcoupon?couponaction=todaycoupons&sportids=102%2c410&markettypeid=&eventid=&bookid=&eventclassid=-1&sportid=102&eventtimegroup=etg_nextfewhours_0_0"; $kodlar = file_get_html($url); echo var_dump($kodlar);
and return => bool(false)
and tryin curl page source code ;
$base = "https://www.superbahis833.com/services/coupontemplate.mvc/getcoupon?couponaction=todaycoupons&sportids=102%2c410&markettypeid=&eventid=&bookid=&eventclassid=-1&sportid=102&eventtimegroup=etg_nextfewhours_0_0"; $curl = curl_init(); curl_setopt($curl, curlopt_ssl_verifypeer, false); curl_setopt($curl, curlopt_header, false); curl_setopt($curl, curlopt_followlocation, true); curl_setopt($curl, curlopt_url, $base); curl_setopt($curl, curlopt_referer, $base); curl_setopt($curl, curlopt_returntransfer, true); $str = curl_exec($curl); curl_close($curl); // create dom object $html_base = new simple_html_dom(); // load html string $html_base->load($str); echo "<textarea>"; echo $html_base; echo "</textarea>";
but time received data base64 crypto...
Comments
Post a Comment