"msisdn parameter is required"])); } $msisdn = $_GET['msisdn']; $url = "https://fundesh.com.bd/api/auth/generateOTP?service_key"; $headers = [ "User-Agent: Mozilla/5.0 (Linux; Android 11; SM-M022G Build/RP1A.200720.012) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.6834.163 Mobile Safari/537.36", "Accept: application/json, text/plain, */*", "Accept-Encoding: gzip, deflate, br, zstd", "Content-Type: application/json", "sec-ch-ua-platform: \"Android\"", "sec-ch-ua: \"Not A(Brand\";v=\"8\", \"Chromium\";v=\"132\", \"Android WebView\";v=\"132\"", "content-type: application/json; charset=UTF-8", "sec-ch-ua-mobile: ?1", "origin: https://fundesh.com.bd", "x-requested-with: mark.via.gp", "sec-fetch-site: same-origin", "sec-fetch-mode: cors", "sec-fetch-dest: empty", "referer: https://fundesh.com.bd/fundesh/profile", "accept-language: en-GB,en-US;q=0.9,en;q=0.8", "priority: u=1, i", "Cookie: fw_uid={%22value%22:%22ee16659e-b25e-4b8f-8f34-9794879acc15%22%2C%22createTime%22:%222025-02-21T06:11:52.087Z%22}; fw_se={%22value%22:%22fws2.589314f4-daea-4712-bb74-bda20746616c.1.1740118312166%22%2C%22createTime%22:%222025-02-21T06:11:52.178Z%22}" ]; $data = json_encode(["msisdn" => $msisdn]); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); $response = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); header('Content-Type: application/json'); echo json_encode(["status_code" => $http_code, "response" => json_decode($response, true)]); ?>