Advertisement
Guest User

Untitled

a guest
Dec 13th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.76 KB | None | 0 0
  1. $login_url = "https://gss.ridika.com/player/1.26/player/login";
  2. $curl = curl_init();
  3. curl_setopt_array( $curl, array(
  4.     CURLOPT_URL => $login_url,
  5.     CURLOPT_RETURNTRANSFER => true,
  6.     CURLOPT_ENCODING => "",
  7.     CURLOPT_MAXREDIRS => 10,
  8.     CURLOPT_TIMEOUT => 5,
  9.     CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  10.     CURLOPT_CUSTOMREQUEST => "POST",
  11.     CURLOPT_HTTPHEADER => array(
  12.         "content-type" => "application/json",
  13.         "cache-control" => "no-cache"
  14.     ),
  15.     CURLOPT_POSTFIELDS => array(
  16.         "username" => $simulation_account->username,
  17.         "password" => $simulation_account->password,
  18.         "language" => "en",
  19.         "brand_id" => "1",
  20.         "password_indicator" => "true"
  21.     )
  22. ) );
  23. $response = curl_exec( $curl );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement