Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //username and password of account
- $username = trim($result['AtomyID']);
- $password = trim($password);
- //echo $username.'<br>';
- //echo $password.'<br>';
- $url="https://www.atomy.com:449/".$result['Country']."/Home/Account/Login";
- $agent = 'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0';
- $header=array(
- 'Host: www.atomy.com:449',
- 'User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0',
- 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'Accept-Language: en-us,en;q=0.5',
- 'Accept-Encoding: gzip,deflate,br',
- 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7',
- 'Keep-Alive: 300',
- 'Connection: keep-alive',
- 'DNT: 1',
- 'Upgrade-Insecure-Requests: 1',
- 'Cache-Control: max-age=0',
- );
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_PORT, '449');
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_USERAGENT, $agent);
- curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
- curl_setopt($ch, CURLOPT_HEADER, 0); // don't return headers
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_REFERER, 'http://google.com');
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
- $result = curl_exec($ch);
- echo $result;
- echo 'error no: '.curl_errno($ch) . '<br/>';
- echo 'error: '.curl_error($ch) . '<br/>';
- curl_close ($ch);
- die();
- exit();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement