Ci4
I overwrote $client = \Config\Services::mycurlrequest();
and
protected function sendRequest(array $curlOptions = []): string
{
$ch = curl_init();
curl_setopt_array($ch, $curlOptions);
// Send the request and wait for a response.
$output = curl_exec($ch);
if ($output === false) {
throw HTTPException::forCurlError((string) curl_errno($ch), curl_error($ch));
}
curl_close($ch);
$this->requestInfo = curl_getinfo($ch);
return $output;
}
And it works - but it's probably not the best idea