concordia search
This commit is contained in:
parent
2bc4f8b336
commit
91eebad698
19
cat/concordia_search.php_pattern
Normal file
19
cat/concordia_search.php_pattern
Normal file
@ -0,0 +1,19 @@
|
||||
<?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);
|
||||
|
||||
print $result;
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user