Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. $header = array();
  2. $header[0] = "Accept: text/xml,application/xml,application/xhtml+xml,";
  3. $header[0] .= "text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5";
  4. $header[] = "Cache-Control: max-age=0";
  5. $header[] = "Connection: keep-alive";
  6. $header[] = "Keep-Alive: 3000";
  7. $header[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  8. $header[] = "Accept-Language: en-us,en;q=0.5";
  9. $header[] = "Pragma: "; // browsers keep this blank.
  10. curl_setopt(self::$curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7');
  11. curl_setopt(self::$curl, CURLOPT_HTTPHEADER, $header);
  12.  
  13. curl_setopt(self::$curl,CURLOPT_COOKIEJAR, $cookieJar);
  14. curl_setopt(self::$curl,CURLOPT_COOKIEFILE, $cookieJar);
  15.  
  16. curl_setopt(self::$curl,CURLOPT_AUTOREFERER, true);
  17. curl_setopt(self::$curl,CURLOPT_FOLLOWLOCATION, true);
  18. curl_setopt(self::$curl,CURLOPT_RETURNTRANSFER, true);
  19.  
  20. curl_setopt(self::$curl,CURLOPT_SSL_VERIFYPEER, false);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement