[gambit-list] HTTP client Re: New project

Mikael mikael.rcv at gmail.com
Mon Sep 12 09:00:28 EDT 2011


Sack https://github.com/pereckerdal/sack provides a very nice HTTP client
library. For credits and license see source files.

It's written atop BH, and can easily be exploded out to be run atop
load/include.

There is one or two updates to the HTTP client functionality in the attached
version that are not committed to the github repo yet. To our knowledge it
works perfectly. Currently non-HTTP compliant server response may cause an
internal exception.

Thanks,
Mikael

2011/9/12 Alex Queiroz <asandroq at gmail.com>

> Hallo,
>
> On Fri, Sep 9, 2011 at 6:28 PM, Steve Graham <jsgrahamus at yahoo.com> wrote:
> > Although I have programmed for decades, I am new to Scheme/Gambit.  I
> > thought that I would use a project I've been contemplating as a help in
> > learning the language.
> > There is a website of scriptures which I wish to download.  Some of the
> > webpages, of course, are indices into books and then chapters.  So I
> would
> > need to follow the links until I got to the actual text, which I would
> then
> > file into a database by volume, book, chapter and verse.
> > I would appreciate any hints as to how to do this.  I'm thinking I would
> > need some help with downloading web pages, stripping HTML and saving to a
> > database.
>
> For downloading the page Gambit already gives you TCP sockets but you
> would have to write the code for HTTP GET, which is not complex. For
> parsing the HTML you will need SSAX[1], there is a "package" for it in
> the Dumping Grounds[2]. Also in the Dumping Grounds you will find
> several database interfaces.
>
> [1] - http://ssax.sourceforge.net/
> [2] -
> http://dynamo.iro.umontreal.ca/~gambit/wiki/index.php/Dumping_Grounds
>
> Cheers,
> --
> -alex
> http://www.artisancoder.com/
> _______________________________________________
> Gambit-list mailing list
> Gambit-list at iro.umontreal.ca
> https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20110912/c81598b2/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cookie.scm
Type: application/octet-stream
Size: 7327 bytes
Desc: not available
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20110912/c81598b2/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cookie-id-based-session-store.scm
Type: application/octet-stream
Size: 5487 bytes
Desc: not available
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20110912/c81598b2/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: form.scm
Type: application/octet-stream
Size: 4729 bytes
Desc: not available
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20110912/c81598b2/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: http-common.scm
Type: application/octet-stream
Size: 8920 bytes
Desc: not available
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20110912/c81598b2/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mime.scm
Type: application/octet-stream
Size: 1556 bytes
Desc: not available
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20110912/c81598b2/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mime2.scm
Type: application/octet-stream
Size: 34789 bytes
Desc: not available
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20110912/c81598b2/attachment-0005.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pool-session-store.scm
Type: application/octet-stream
Size: 3374 bytes
Desc: not available
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20110912/c81598b2/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: session.scm
Type: application/octet-stream
Size: 1992 bytes
Desc: not available
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20110912/c81598b2/attachment-0007.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: show-exceptions.scm
Type: application/octet-stream
Size: 692 bytes
Desc: not available
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20110912/c81598b2/attachment-0008.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x-www-form-urlencoded.scm
Type: application/octet-stream
Size: 9363 bytes
Desc: not available
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20110912/c81598b2/attachment-0009.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uri.scm
Type: application/octet-stream
Size: 29062 bytes
Desc: not available
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20110912/c81598b2/attachment-0010.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: http-client.scm
Type: application/octet-stream
Size: 42602 bytes
Desc: not available
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20110912/c81598b2/attachment-0011.obj>


More information about the Gambit-list mailing list