Commit efba0898 authored by Matthias Tietz's avatar Matthias Tietz
Browse files

update tisafUriCurl.php

parent 255ce98d
......@@ -11,7 +11,7 @@ header("Access-Control-Allow-Origin: *"); // enable CORS for the whole REST API
*/
try {
$terminologyId = "tisaftags6";
$terminologyId = "unescothes";
$config = new GlobalConfig();
$model = new Model($config);
$request = new Request($model);
......@@ -50,7 +50,8 @@ EOD;
$errors[] = [$uniqueUri, $result["status"], $result["data"]];
}
}
echo "result";
echo "result: \n\r";
echo (print_r($result));
} catch (Exception $e) {
header("HTTP/1.0 500 Internal Server Error");
......@@ -69,7 +70,7 @@ function curl_get($url, array $get = NULL, array $options = array())
CURLOPT_URL => $url. (strpos($url, '?') === FALSE ? '?' : ''). http_build_query($get),
CURLOPT_HEADER => 0,
CURLOPT_RETURNTRANSFER => TRUE,
CURLOPT_TIMEOUT => 5
CURLOPT_TIMEOUT => 4
);
$ch = curl_init();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment