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.
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
http://babelfish.altavista.com for translation. Simply run it
run it to obtain a usage message:
For example, to translate ``Hola Mundo'' from Spanish to English use:
and to translate ``Hola Mundo'' to French use:
It is also possible to use the script in a pipeline to play word
games:
Enjoy.
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.