From bparsia@email.unc.edu Fri Mar  1 21:11:35 2002
Received: from smtpsrv1.isis.unc.edu (smtpsrv1.isis.unc.edu [152.2.1.138])
	by swi.psy.uva.nl (8.11.6/8.11.2) with ESMTP id g21KBYu09379
	for <prolog@swi.psy.uva.nl>; Fri, 1 Mar 2002 21:11:34 +0100 (MET)
Received: from login3.isis.unc.edu (bparsia@login3.isis.unc.edu [152.2.1.100])
	by smtpsrv1.isis.unc.edu (8.9.3/8.9.1) with ESMTP id PAA15142
	for <prolog@swi.psy.uva.nl>; Fri, 1 Mar 2002 15:11:33 -0500 (EST)
Received: (from bparsia@localhost)
	by login3.isis.unc.edu (AIX4.3/8.9.3/8.9.3) id PAA97406;
	Fri, 1 Mar 2002 15:11:33 -0500
Date: Fri, 1 Mar 2002 15:11:32 -0500 (EST)
From: Bijan Parsia <bparsia@email.unc.edu>
X-Sender: bparsia@login3.isis.unc.edu
To: prolog@swi.psy.uva.nl
Message-ID: <Pine.A41.4.21L1.0203011508360.36862-100000@login3.isis.unc.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Subject: [SWIPL] Fetching files over HTTP

Hello,

I feel as if I must have asked this before :)

What's the most straightforward way of fetching files over HTTP (well, in
particular; other protocols like FTP would be welcome, too) in
SWI-Prolog? I notice a fair bit of HTTP server code, but I'm having a bit
of trouble finding client code.

Assuming that there isn't anything bundled, any recommendations for
libraries for this? I vaugely recall trying out Pillow (or some such) but
it had real problems (as I recall) with modern domain names (virtual hosts
in particular, I think).


Cheers,
Bijan Parsia.

