Sample HTTP/XML Command API Code

The sample code provided here illustrates how to send a command collection to CommonSpot via HTTP. If desired, 'View Source' on that page to see the HTML and JavaScript used.

The example is a standalone HTML page (no ColdFusion) where you can enter command collection xml, run it, and see the result xml that CommonSpot returns.

It serves as a demonstration of how to use the API, and a tool for learning what specific commands do. Seeing exactly what happens when a command is submitted can help you visualize the process and its results more clearly than just reading about it. You can also use it as a debugging tool, to see exactly what CommonSpot returns when it receives the set of commands you are working on.

Using the sample page is quite simple: