Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(E_ALL);
- ini_set("display_errors", 1);
- $username = 'services@cocaclicks.com';
- $password = '6ulJ0cVz4yq3';
- $bbClientID = 'tnzFddFrgW4TFz7Tzf';
- $bbSecret = 'mHdwXzEmqesAVGbEFXsDpQjdNDeQpkp9';
- $url = "https://bitbucket.org/site/oauth2/authorize?client_id=tnzFddFrgW4TFz7Tzf&response_type=token";
- $cookie= "cookieBB3.txt";
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- //curl_setopt($ch, CURLOPT_COOKIEJAR, $_SERVER['DOCUMENT_ROOT'].$cookie);
- curl_setopt($ch, CURLOPT_COOKIEFILE, $_SERVER['DOCUMENT_ROOT'].$cookie);
- curl_setopt($ch, CURLOPT_REFERER, $url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_POST, true);
- curl_setopt($ch, CURLOPT_COOKIEJAR, $_SERVER['DOCUMENT_ROOT'].$cookie);
- $response = curl_exec($ch);
- var_dump($response);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement