SHARE
TWEET

Untitled

a guest Jan 18th, 2020 115 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $ch=curl_init();
  2. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  3. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  4. curl_setopt($ch, CURLOPT_HEADER, 0);
  5. curl_setopt($ch, CURLOPT_URL, $url);
  6. // curl_setopt($ch, CURLOPT_HEADER, 1);
  7. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  8. curl_setopt($ch, CURLOPT_COOKIEFILE, $cookies); // Save cookies to
  9. curl_setopt($ch, CURLOPT_POSTFIELDS, "user=$cp_user&pass=$cp_pwd");
  10. curl_setopt($ch, CURLOPT_TIMEOUT, 100020);
  11.  
  12. $f = curl_exec($ch);
  13. curl_close($ch);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top