chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] New egg: curl.egg


From: Tony Sidaway
Subject: [Chicken-users] New egg: curl.egg
Date: Wed, 7 Feb 2007 06:57:00 +0000

curl.egg

Using curl you can easily incorporate http, ssl, ftp and other file
transfer protocols into your chicken application.

This is still very alpha software, but is usable and reliable for
basic http get operations.

I have placed a copy here:

http://tonysidaway.schtuff.com/curl_egg

You must click on the question mark icon to initiate the download.
Install in the usual way, for instance on Ubuntu:

$ sudo chicken setup curl

It can also be obtained from the egg repository via subversion.

$ svn co https://galinha.ucpel.tche.br/svn/chicken-eggs/curl
$ cd curl/trunk
$ make
$ sudo make install

tinyclos is required, and you'll need libcurl to build and use this.

a simple demonstration:

$ csi
(use curl)
(define c (curl 'easy))
(curl-set-option! c 'url "http://www.example.com";)
(curl-perform c)

This example code writes content from the specified URL to
(current-output-port).  The content can be captured in a Scheme string
by using with-output-to-string.

The libcurl homepage is at http://curl.haxx.se/libcurl/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]