Advertisement
Guest User

Untitled

a guest
Apr 18th, 2015
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. $ch = curl_init();
  2. curl_setopt($ch, CURLOPT_URL, "http://5.79.72.90/");
  3. curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2");
  4. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  5. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT ,60);
  6. curl_setopt($ch, CURLOPT_HEADER, 1);
  7. $page = curl_exec($ch);
  8. if (curl_errno($ch)){
  9.     echo curl_error($ch);    
  10. }
  11. curl_close($ch);
  12. echo $page;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement