guile curl is a project that has procedures that allow Guile to do client-side URL transfers, like requesting documents from http or ftp servers. It is based on the libcurl library. GNU Guile is an implementation of Scheme, a Lisp-like computer language.

Usage

Here is an example of using guile curl in an interactive Guile session.

scheme@(guile-user)> (use-modules (curl))
scheme@(guile-user)> (define handle (curl-easy-init))
scheme@(guile-user)> (curl-easy-setopt handle 'url "http://www.gnu.org")
scheme@(guile-user)> (define s (curl-easy-perform handle))
scheme@(guile-user)> (display s)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
...

The full documentation is available:

Installation

guile-curl is freely available for download. It is licensed using the terms in the GNU General Public License version 3 (GPLv3).

To install from source code, download the latest compressed file archive and unpack it.

Make sure to appropriately use the prefix and libdir options. On Fedora, for example, the configure should be...

$ ./configure --prefix=/usr --libdir=/usr/lib64
$ make
$ sudo make install
	  

Development

The git repository for this project is at github.com/spk121/guile-curl