Version 0.2.0  

S-Lang cURL Module


The S-Lang curl module makes use of the cURL library to provide the S-Lang interpreter the ability to transfer files in a simple but robust manner using a variety of protocols including FTP and HTTP.

See the module's online documentation for more information about it.

The source code for the latest version of the module may be downloaded from The development version may be obtained from the Subversion repository using
     svn co slcurl

A simple example of its use is provided by a S-Lang script called translate, located in the demo subdirectory of the source distribution. This script sends a user provided phrase to for translation. Simply run it run it to obtain a usage message:
     translate [--to lang-out] lang-in [phrase|-]
For example, to translate ``Hola Mundo'' from Spanish to English use:
     translate spanish Hola Mundo
and to translate ``Hola Mundo'' to French use:
     translate --to french spanish Hola Mundo
It is also possible to use the script in a pipeline to play word games:
     translate --to spanish english Boy meets girl | \
        translate --to french spanish | translate french

This page was last updated Sep 14, 2007 by John E. Davis. To comment on it or the material presented here, send email to jed at jedsoft org.
Valid HTML 4.01! Made with JED Viewable With Any Browser