Using WebLicht from the Commandline

From WebLichtWiki

(Difference between revisions)
Jump to: navigation, search
(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...")
 
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
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.
 
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.
+
However, we strongly recommend you to use [https://weblicht.sfs.uni-tuebingen.de/WaaS/ WaaS(Weblicht as a Service)] instead of sending POST requests to web services directly.
  
A generic call of a WebLicht web service with curl looks like this:
+
For further information, please refer to [https://weblicht.sfs.uni-tuebingen.de/WaaS/ WaaS].
 
+
curl -H 'content-type: text/plain' -d @input.tcf -X POST "http://url-to-webservice-with-parameters" -o output.tcf
+

Latest revision as of 09:22, 9 October 2014

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.

However, we strongly recommend you to use WaaS(Weblicht as a Service) instead of sending POST requests to web services directly.

For further information, please refer to WaaS.