Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_HEADER, 1);
- curl_setopt($ch, CURLOPT_NOBODY, false);
- curl_setopt($ch, CURLOPT_ENCODING, 'gzip');
- curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($ch, CURLOPT_COOKIESESSION, true);
- curl_setopt($ch, CURLOPT_COOKIEJAR, getcwd().'/pagseguro.txt');
- curl_setopt($ch, CURLOPT_COOKIEFILE, getcwd().'/pagseguro.txt');
- curl_setopt($ch, CURLOPT_REFERER, 'https://pagseguro.uol.com.br/login.jhtml');
- curl_setopt($ch, CURLOPT_TIMEOUT, 200);
- curl_setopt($ch, CURLOPT_VERBOSE, 1);
- if ($method == 'POST')
- {
- curl_setopt($ch, CURLOPT_POST, 1);
- 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);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement