Is their a function that returns the httpdata of a url

Permalink
Is their a concrete5 function that returns the data of a url similar to wordpress $httpData = wp_remote_get($url);

thanks

wavemedia
 
goodnightfirefly replied on at Permalink Reply
goodnightfirefly
For version 5.6:

$file_helper = Loader::helper('file');
$httpData = $file_helper->getContents($url);


For version 5.7

$file_helper = Core::make('helper/file');
$httpData = $file_helper->getContents($url);
sfiat replied on at Permalink Reply
Hi,
This used to work in 5.7 but since I upgrated to 5.7.4, it doesn't seems to work anymore.. I am trying to find a way to do this but I am not yet really familiar with new 5.7 ways...
Any idea ?
Thanks