Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
2.0 kB
4
Indexable
Never
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_PORT => "9443",
  CURLOPT_URL => "https://sg-sg-sg.astro.com.my:9443/ctap/r1.6.0/devices/me/playsessions?channelId=2505",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "",
  CURLOPT_COOKIE => "settings=s%253A%257B%2522uxFlavour%2522%253A%2522Astro_unmanaged%2522%252C%2522ccPackageDeviceType%2522%253A%2522CHROME-FF%2522%257D.iWQDRuxUQx%252BxpXDryNiE21v3GvCJPDZShmIv5HTq93I; cmty=%257B%2522community%2522%253A%2522Malaysia%2520Live%2522%257D",
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer eyJraWQiOiI1NTBiZWNiMy0yMDBkLTQyOWItODFkZS01MTM0NjQ5YTE1ZDEiLCJqa3UiOiJodHRwczovL3NnLXNnLXNnLmFzdHJvLmNvbS5teTo5NDQzL29hdXRoMi9qd2tzP2tpZD01NTBiZWNiMy0yMDBkLTQyOWItODFkZS01MTM0NjQ5YTE1ZDEiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE3MDM5Mzg4NTgsInN1YiI6IjkxNTg4NjgxIiwiYXVkIjoiaXZwLnNlc3Npb25ndWFyZCIsImV4cCI6MTcwMzk0OTY1OCwic2Vzc2lvbl9kYXRhIjp7InNlc3Npb24iOnsiZGV2SWQiOiI5MTU4ODY4MS5iNWIwYjcwNC05NGExLTQyNDMtYTYwZC0wMDIzNzYzZjk1MjEiLCJndWVzdE1vZGUiOmZhbHNlLCJoaElkIjoiOTE1ODg2ODEiLCJidXNVbml0SWQiOiJBU1RSTyJ9fSwiZGV2aWNlRnVsbFR5cGUiOiJCcm93c2VyLURlZmF1bHQiLCJzY29wZSI6ImJyb3dzZSBwbGF5YmFjayIsInRva2VuX3R5cGUiOiJhY2Nlc3NfdG9rZW4iLCJzc2FfanRpIjoiYnJvd3NlciIsImNsaWVudF9pZCI6ImJyb3dzZXIiLCJqdGkiOiI0MWQ5YmVjNy1kMTY1LTQ1MzUtODNjZC0xMGE0YTk3OTdhM2UifQ.hxfHePKjzNn1tTP9AG-lCFQ8IZebNz7TY8Tjc7Avc3wlnT1Yh5XgSGsmzl-z7fHFK2ziV5l4Tt8r8zIpe13xkP5D9mgOJ_ksnVOEnUF6iOcd-V7vAOgBwIk4GvklFCzEVO0jARakoOfsCbEW2jiAe7IIENgZ3tzPHeAPukNIKRLwvgHG-QTfH6R0t4GPaJdC2X2I_-QKmD6hBEmSf5sbii7zUSclo0_exUxkEffBCGlrbEbaZetaG5ROOAS8gOvX-lggaMvtfRsM7vGXIlMt1HZrLgpQJw97qAB9B1-1h301HYcd-WiLc2_Q-_0rXi9rKITzdaOO2-vQtdNt1wz0iw",
    "User-Agent: insomnia/8.5.1"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
Leave a Comment