Curl Call in Joomla 4 $url = ‘https://api.github.com’; $options = []; $data = []; $http = JHttpFactory::getHttp(new JRegistry($options)); $response = $http->get($url, $data); echo $response->body; Reference : https://issues.joomla.org/tracker/joomla-cms/20537