Using WebLicht from the Commandline

From WebLichtWiki

(Difference between revisions)
Jump to: navigation, search
Thomas Zastrow (Talk | contribs)
(Created page with "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...")
Newer edit →

Revision as of 08:43, 29 May 2013

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