diff --git a/facet_viewer/index.php b/facet_viewer/index.php index 9fbf74c..9fa91fa 100644 --- a/facet_viewer/index.php +++ b/facet_viewer/index.php @@ -37,6 +37,9 @@ function getSets($rt) { //return the transfer as a string curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + //tweak to follow redirects + curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true ); + // $output contains the output string $output = curl_exec($ch); @@ -168,6 +171,8 @@ function transformToTable($feedURL, $field) { //return the transfer as a string curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch,CURLOPT_FOLLOWLOCATION, true ) ; + // $output contains the output string $pageoutput = curl_exec($ch); @@ -268,4 +273,4 @@ function transformToTable($feedURL, $field) { }); - \ No newline at end of file +