function getExternalRequest($id) { for ($i = 0; $i < count($_SESSION["owsproxyUrls"]["url"]); $i++) { if ($id == $_SESSION["owsproxyUrls"]["id"][$i]) { $cUrl = $_SESSION["owsproxyUrls"]["url"][$i]; $query_string = removeOWSGetParams($_SERVER["QUERY_STRING"]); if ($query_string != '') { $cUrl .= getConjunctionCharacter($cUrl) . $query_string; } $metainfo = get_headers($cUrl, 1); // just for the stupid InternetExplorer header('Pragma: private'); header('Cache-control: private, must-revalidate'); header("Content-Type: " . $metainfo['Content-Type']); $content = getDocumentContent($cUrl); #$content = matchUrls($content); echo $content; } } }
function getExternalRequest($id) { for ($i = 0; $i < count($_SESSION["owsproxyUrls"]["url"]); $i++) { if ($id == $_SESSION["owsproxyUrls"]["id"][$i]) { $cUrl = $_SESSION["owsproxyUrls"]["url"][$i]; $query_string = removeOWSGetParams($_SERVER["QUERY_STRING"]); if ($query_string != '') { $cUrl .= getConjunctionCharacter($cUrl) . $query_string; } $metainfo = get_headers($cUrl, 1); // just for the stupid InternetExplorer header('Pragma: private'); header('Cache-control: private, must-revalidate'); header("Content-Type: " . $metainfo['Content-Type']); $content = getDocumentContent($cUrl, false); #$content = matchUrls($content); //In the case of http_auth - this is not possible cause we cannot save them in the header - maybe we could create a special session to do so later on? echo $content; } } }