// Method Bearer + parameters by Post $data1 = array( 'requester_ip' => $_SERVER['REMOTE_ADDR'], ); $h = curl_init($introspection_endpoint); curl_setopt($h, CURLOPT_HTTPHEADER, array( 'Content-Type: application/x-www-form-urlencoded', 'Authorization: Bearer ' . $res1['id_token'] )); curl_setopt($h, CURLOPT_RETURNTRANSFER, true); curl_setopt($h, CURLOPT_POST, 1); curl_setopt($h, CURLOPT_POSTFIELDS, http_build_query($data1)); $res = curl_exec($h); ...