From post@volker-wysk.de Sat Mar  2 18:48:17 2002
Received: from volker (mail@dsl-213-023-038-021.arcor-ip.net [213.23.38.21])
	by swi.psy.uva.nl (8.11.6/8.11.2) with ESMTP id g22HmGu23860
	for <prolog@swi.psy.uva.nl>; Sat, 2 Mar 2002 18:48:17 +0100 (MET)
Received: from localhost ([127.0.0.1] ident=v)
	by volker with esmtp (Exim 3.33 #1 (Debian))
	id 16hDcH-0001WQ-00; Sat, 02 Mar 2002 18:48:17 +0100
Date: Sat, 2 Mar 2002 18:48:17 +0100 (CET)
From: Volker Wysk <post@volker-wysk.de>
X-X-Sender:  <v@volker>
To: Bijan Parsia <bparsia@email.unc.edu>
cc: <prolog@swi.psy.uva.nl>
Subject: Re: [SWIPL] Fetching files over HTTP
In-Reply-To: <Pine.A41.4.21L1.0203011508360.36862-100000@login3.isis.unc.edu>
Message-ID: <Pine.LNX.4.31.0203021845500.1298-100000@volker>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Fri, 1 Mar 2002, Bijan Parsia wrote:

> 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).

If you're under Unix, the easiest way would be to call "lynx -source
<URL>" and read its output via a pipe.

Volker

