From john@binding-time.co.uk Sun Mar  3 12:57:15 2002
Received: from typhoon.mail.pipex.net (typhoon.mail.pipex.net [158.43.128.27])
	by swi.psy.uva.nl (8.11.6/8.11.2) with SMTP id g23BvAu09125
	for <prolog@swi.psy.uva.nl>; Sun, 3 Mar 2002 12:57:15 +0100 (MET)
Received: (qmail 12248 invoked from network); 3 Mar 2002 11:57:09 -0000
Received: from userdn37.uk.uudial.com (HELO ngf6k) (62.188.4.156)
  by smtp-2.dial.pipex.com with SMTP; 3 Mar 2002 11:57:09 -0000
Message-ID: <003501c1c2aa$a4650fc0$9c04bc3e@ngf6k>
From: "John Fletcher" <john@binding-time.co.uk>
To: "Bijan Parsia" <bparsia@email.unc.edu>,
   "Volker Wysk" <post@volker-wysk.de>
Cc: "SWI Prolog List" <prolog@swi.psy.uva.nl>
References: <Pine.A41.4.21L1.0203021249330.103356-100000@login3.isis.unc.edu>
Subject: Re: [SWIPL] Fetching files over HTTP
Date: Sun, 3 Mar 2002 11:57:34 -0000
MIME-Version: 1.0
Content-Type: text/plain;
	charset="Windows-1252"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by swi.psy.uva.nl id g23BvAu09125

----- Original Message ----- 
From: "Bijan Parsia" <bparsia@email.unc.edu>
To: "Volker Wysk" <post@volker-wysk.de>
Cc: <prolog@swi.psy.uva.nl>
Sent: Saturday, March 02, 2002 5:52 PM
Subject: Re: [SWIPL] Fetching files over HTTP

> On Sat, 2 Mar 2002, Volker Wysk wrote:
> 
> [snip]
> > If you're under Unix, the easiest way would be to call "lynx -source
> > <URL>" and read its output via a pipe.
> 
> Ouch. First, I'm not on Unix and I need/want Windows compatibility.
> 
> Second, I did espy the XPCE class http_client, which seemed promising
> until I found myself in the wonderful but strange world of XPCE :)
> 
> I'd be happy if I could figure out (or someone could tell me) how to use
> http_client to write its data to a local file :)
> 
> But thanks for the suggestion, or depression :)
>

Bijan

I've been using curl, (available from http://curl.haxx.se/), to do http, https and ftp retrieval on Windows.

I doesn't do everything that I want, "straight out of the box", but it's easy enough to add custom headers etc.

Regards

John Fletcher



