chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] New egg: curl.egg


From: felix winkelmann
Subject: Re: [Chicken-users] New egg: curl.egg
Date: Wed, 7 Feb 2007 09:13:39 +0100

On 2/7/07, Tony Sidaway <address@hidden> wrote:
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/


I have uploaded the egg to the chicken website (to make it available via
chicken-setup).

One little problem I have, though: I installed the newest libcurl (7.16.1)
and it seems CURLOPT_SOURCE_URL and CURLOPT_SOURCE_QUOTE are
not supported anymore. I recommend removing these options.


cheers,
felix




reply via email to

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