REST via HTTP POST
Submitted by admin on Wed, 02/25/2009 - 12:36.
REST via HTTP POST
The following is a sample REST API call via 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 also note that all of the arguments sent using this method must be URL-encoded.
POST /enlighten/rest/ HTTP/1.1
Host: api.opencalais.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
licenseID=string&content=string&/paramsXML=string
HTTP/1.1 200 OK
Content-Type: text/xml;charset=utf-8
Content-Length: length
string
To make POST requests to OpenCalais using CURL, please refer to this post.
