fork download
  1. <?php
  2.  
  3. function curl_get($url){
  4. $curl = curl_init();
  5. curl_setopt($curl, CURLOPT_URL, $url);
  6. curl_setopt($curl, CURLOPT_PROXY, "207.32.30.20:8080");
  7. curl_setopt($curl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
  8. curl_setopt($curl, CURLOPT_USERAGENT,'Opera/9.80 (Windows NT 5.1; U; ru) Presto/2.2.15 Version/10.10');
  9. curl_setopt($curl, CURLOPT_FAILONERROR, true);
  10. curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
  11. curl_setopt($curl, CURLOPT_REFERER, "http://w...content-available-to-author-only...u.com/");
  12. curl_setopt($curl, CURLOPT_RETURNTRANSFER,1);
  13. curl_setopt($curl, CURLOPT_TIMEOUT, 30);
  14. $cnt = curl_exec($curl);
  15. curl_close($curl);
  16. return $cnt;
  17. }
  18.  
  19. echo curl_get('http://w...content-available-to-author-only...u.com/bets.php?m=chemps&id_sport[]=7');
Success #stdin #stdout 0.02s 23604KB
stdin
Standard input is empty
stdout
Standard output is empty