Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- include_once("simple_html_dom.php");
- $cookie = "";
- $ch = curl_init ();
- curl_setopt($ch,CURLOPT_URL,"https://ebr1m.hasil.gov.my/SemakanKeluar.aspx?i=%2b2n0eU1wWL95mKKlIgQE%2bifqhY%2bMr3Vm%2b7cRxZnZsyI%3d");
- echo $_GET['id'];
- curl_setopt($ch, CURLOPT_HEADER, true);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_COOKIE,$cookie);
- curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
- curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0');
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- $data = curl_exec($ch);
- curl_close($ch);
- $doc = str_get_html($data);
- echo $doc;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement