NTZkNDM3ZTgtOWIwMS00NWZiLTk3MzQtNGY2ZDNhYzYwNzBiOjIpX2I5XTNJd2dBIT04VT9gYGxMd2JEbg== /care-flow/oauth/token?grant_type=client_credentials error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol $info = curl_getinfo($ch); // Log request and response details $logData = [ 'Request URL' => $info['url'], 'Request Method' => isset($postData) ? 'POST' : 'GET', 'Request Headers' => $headers, 'Post Data' => $postData, 'HTTP Code' => $info['http_code'], 'Response Headers' => substr($response, 0, $info['header_size']), 'Response Body' => substr($response, $info['header_size']), 'Error' => curl_error($ch), 'Error Code' => curl_errno($ch), ]; // Write log data to the file file_put_contents($logFile, print_r($logData, true), FILE_APPEND);