I have this url : http://localhost/Test/ in my Test it is a folder content csv files so i used this function but the result it always contents html code i don't understand why.
$auth = base64_encode('test:test');
$aContext = array(
'http' => array(
'proxy' => 'tcp://127.0.0.1:80',
'request_fulluri' => true,
'header' => "Proxy-Authorization: Basic $auth",
),
);
$cxContext = stream_context_create($aContext);
$sFile = file_get_contents("http://localhost/Test/", false, $cxContext);
echo $sFile;