Advertisement
alpa_s

Untitled

Aug 10th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. curl_setopt($ch, CURLOPT_HEADER, true);
  2. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  3. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
  4. curl_setopt($ch, CURLOPT_COOKIEJAR, $path_to_runtime);
  5. curl_setopt($ch, CURLOPT_COOKIEFILE, $path_to_runtime);
  6. curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 Iceweasel/43.0.4");
  7. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  8. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  9. curl_setopt($ch, CURLOPT_HEADER, 'Content-Type: application/x-www-form-urlencoded');
  10. curl_setopt($ch, CURLOPT_URL, $url);
  11. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  12. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  13. curl_setopt($ch, CURLOPT_MAXREDIRS, 5);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement