$text ,'output' => 'json' )); $opts = array('http' => array( 'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $postdata )); $context = stream_context_create($opts); // Send HTTP request and get response $result = @file_get_contents($service_url, false, $context); // Print results header('Content-Type: text/plain; charset=UTF-8'); echo $result; /* // Process results (JSON, regular mode) if ($result) { if ($json = @json_decode($result)) { foreach ($json as $term) { echo $term[0],"\n"; } } } */