i am trying to call & get another url data.So is trying to create new instance of http class as follows -
jimport('joomla.http.http'); jimport('joomla.http.transport.curl'); $options = array(); $transport = new JHttpTransportCurl($options); // Create a 'curl' transport. $http = new JHttp($options, $transport); $response = $http->get('http://api.example.com/shoes');
but it's not working as somewhere wrong in line 4. Please save my time hoping this is the right way to make call to another API url.