Advertisement
Guest User

Untitled

a guest
Jun 26th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <?
  2. include_once("simple_html_dom.php");
  3.  
  4. $cookie = "";
  5. $ch = curl_init ();
  6. curl_setopt($ch,CURLOPT_URL,"https://ebr1m.hasil.gov.my/SemakanKeluar.aspx?i=%2b2n0eU1wWL95mKKlIgQE%2bifqhY%2bMr3Vm%2b7cRxZnZsyI%3d");
  7.  
  8. echo $_GET['id'];
  9.  
  10. curl_setopt($ch, CURLOPT_HEADER, true);
  11. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  12. curl_setopt($ch, CURLOPT_COOKIE,$cookie);
  13. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
  14. curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0');
  15. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
  16. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  17.  
  18. $data = curl_exec($ch);
  19. curl_close($ch);
  20.  
  21. $doc = str_get_html($data);
  22. echo $doc;
  23.  
  24. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement