From 91eebad698b3f7e70ca26a8dbb8bddf111ef8e20 Mon Sep 17 00:00:00 2001 From: rjawor Date: Tue, 21 Feb 2017 09:31:48 +0100 Subject: [PATCH] concordia search --- cat/concordia_search.php_pattern | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 cat/concordia_search.php_pattern diff --git a/cat/concordia_search.php_pattern b/cat/concordia_search.php_pattern new file mode 100644 index 0000000..171c526 --- /dev/null +++ b/cat/concordia_search.php_pattern @@ -0,0 +1,19 @@ + "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; + +?>