Using WebLicht from the Commandline

From WebLichtWiki

Revision as of 08:43, 29 May 2013 by Thomas Zastrow (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

WebLicht web services are implemented as RESTstyle web services: this means, they can be called not only from WebLichts graphical user interface, but also from the commandline.

On Unix-like systems like Linux or Mac OS X, two CLI tools can be used for this task: wget or curl. In the following, the use of curl is described.

A generic call of a WebLicht web service with curl looks like this:

curl -H 'content-type: text/plain' -d @input.tcf -X POST "http://url-to-webservice-with-parameters" -o output.tcf