Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $url="https://1xbetua.com/user/auth/";
- $urlTo="https://1xbetua.com/";
- $post="uLogin=33589681&uPassword=737mbxk6&save=on&redirect=http://1xbetua.com";
- $ch = curl_init();
- curl_setopt( $ch, CURLOPT_URL, $url);
- curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true);
- $result = curl_exec($ch);
- curl_setopt($ch, CURLOPT_HTTPHEADER, 'accept: application/json, text/javascript, */*; q=0.01',
- 'content-type: application/x-www-form-urlencoded; charset=UTF-8', 'x-requested-with: XMLHttpRequest');
- curl_setopt( $ch, CURLOPT_URL, $urlTo);
- curl_setopt( $ch, CURLOPT_COOKIEJAR, dirname(__FILE__ ). '/cookie.txt' );
- curl_setopt( $ch, CURLOPT_COOKIEFILE, dirname(__FILE__ ). '/cookie.txt' );
- curl_setopt( $ch, CURLOPT_POST, true);
- curl_setopt( $ch, CURLOPT_POSTFIELDS, $post);
- curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1);
- $result = curl_exec($ch);
- curl_close ($ch);
- echo $result;
- if($result=="") {
- echo "ОШИБКА!"; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement