<?php
header('Content-type: text/xml');

$appid="folkskit";
$termExtractionUrl="http://api.search.yahoo.com/ContentAnalysisService/V1/termExtraction";


require "GenericHTTPResponse.php";
require "RESTful.php";

if (array_key_exists('_submit_check', $_GET)) {
	// form has been posted
	// Submit content to yahoo service
	// get result
	$arguments=array("appid"=>$appid, "context"=>$_GET['inputcontent']); 
	$result_of_post=HTTP_Post($termExtractionUrl, $arguments);
	$xml=  strip_headers($result_of_post);
	echo $xml;
	
}

?>
