Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $login_url = "https://gss.ridika.com/player/1.26/player/login";
- $curl = curl_init();
- curl_setopt_array( $curl, array(
- CURLOPT_URL => $login_url,
- CURLOPT_RETURNTRANSFER => true,
- CURLOPT_ENCODING => "",
- CURLOPT_MAXREDIRS => 10,
- CURLOPT_TIMEOUT => 5,
- CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
- CURLOPT_CUSTOMREQUEST => "POST",
- CURLOPT_HTTPHEADER => array(
- "content-type" => "application/json",
- "cache-control" => "no-cache"
- ),
- CURLOPT_POSTFIELDS => array(
- "username" => $simulation_account->username,
- "password" => $simulation_account->password,
- "language" => "en",
- "brand_id" => "1",
- "password_indicator" => "true"
- )
- ) );
- $response = curl_exec( $curl );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement