Advertisement
alpa_s

Untitled

Apr 12th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. $url = "http://csoku.peerclicktrk.com/postback?cid=81b2d398ce5559e1050ac5d9ff767a25-2071-0411";
  2.  
  3.  
  4. $page = @file_get_contents($url);
  5. if (empty($page)) {
  6. $curl = curl_init($url);
  7. curl_setopt($curl, CURLOPT_HEADER, true);
  8. curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
  9. curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
  10. curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36");
  11. curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
  12. curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  13. curl_setopt($curl, CURLOPT_HEADER, 'Content-Type: application/x-www-form-urlencoded');
  14. $page = curl_exec($curl);
  15. }
  16. return $page;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement