HTTP POST
Submitted by admin on Wed, 02/25/2009 - 12:37.
HTTP POST
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values. Please note that the content sent using this method needs to be escaped. Please note that paramsXML must be sent without HTTP encoding (escaping) and the input content must be URL encoded.
POST /enlighten/calais.asmx/Enlighten HTTP/1.1
Host: api.opencalais.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
licenseID=string&content=string¶msXML=stringHTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://clearforest.com/">string</string> 