Advertisement
Guest User

Untitled

a guest
May 25th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.22 KB | None | 0 0
  1.             curl_setopt($ch, CURLOPT_URL, $url);
  2.             curl_setopt($ch, CURLOPT_HEADER, 1);
  3.             curl_setopt($ch, CURLOPT_NOBODY, false);
  4.             curl_setopt($ch, CURLOPT_ENCODING, 'gzip');
  5.             curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
  6.             curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  7.             curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  8.             curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  9.             curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  10.             curl_setopt($ch, CURLOPT_COOKIESESSION, true);
  11.             curl_setopt($ch, CURLOPT_COOKIEJAR, getcwd().'/pagseguro.txt');
  12.             curl_setopt($ch, CURLOPT_COOKIEFILE, getcwd().'/pagseguro.txt');
  13.             curl_setopt($ch, CURLOPT_REFERER, 'https://pagseguro.uol.com.br/login.jhtml');
  14.             curl_setopt($ch, CURLOPT_TIMEOUT, 200);
  15.             curl_setopt($ch, CURLOPT_VERBOSE, 1);
  16.  
  17.             if ($method == 'POST')
  18.             {
  19.                 curl_setopt($ch, CURLOPT_POST, 1);
  20.                 curl_setopt($ch, CURLOPT_POSTFIELDS, 'dest=+REDIR%7Chttps%3A%2F%2Fpagseguro.uol.com.br%2Fdata%2Fedit.jhtml%23!account-data&skin=&acsrfToken='.$token.'&user='.$email.'&pass='.$pwd);
  21.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement