concordia-server/cat/concordia_search.php_pattern

19 lines
543 B
Plaintext
Raw Normal View History

2017-02-21 09:31:48 +01:00
<?php
$url = 'http://@concordia_host@:@concordia_port@';
$data = array("operation" => "concordiaSearch","tmId" => intval($_GET["tmId"]),"pattern" => $_GET["pattern"]);
// use key 'http' even if you send the request to https://...
$options = array(
'http' => array(
'header' => "Content-type: application/x-www-form-urlencoded\r\n",
'method' => 'POST',
'content' => json_encode($data),
),
);
$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);
2017-02-21 09:37:50 +01:00
print $result;
2017-02-21 09:31:48 +01:00
?>