Re: wwwhtml.pl and <plainte
Rainer Sinkwitz (rainer.sinkwitz@chcrc.abb.ch)
18 Nov 1994 11:45:20 U
Reply to: RE>>wwwhtml.pl and <plaintex
>>Anthony Thyssen wrote:
>> 3/ Is a wwwftp.pl package available?
>I wrote:
>With the CERN proxy gateway the libwww-perl package does all protocols for
me
>including ftp.
Now I think I should cc: the answer to the list......
The whole subject is nicely explained in the Altis/Lutonnen paper from
the first WWW conference which is also available on the net as
<http://www1.cern.ch/PapersWWW94/luotonen.ps> .
The basic thing is that the CERN server (Version 3.0 just released) is a
server **and** a client. If I send a "GET http://some.host/some/path.html" to
the CERN server it just forwards it (or maybe fetches it from it cache). Thus
I can send a "GET ftp://some.host/some/path" to it likewise.
The basic requirement for clients is that they support using a proxy. Then
all outside communication is done only via http and only with the gateway.
The
libwww.a has proxy support and also the libwww-perl.pl. You just have to set
the necessary environment variables.
I have written a small wrapper script to use the "get" program (as htget):
-------------------
#!/bin/sh
# Run libwww-perl scripts
LIBWWW_PERL=/where/you/have/it/libwww-perl export LIBWWW_PERL
base=`basename $0`
if [ ! -f $LIBWWW_PERL/$base ]; then # strip ht prefix
base=`echo $base | cut -c3-`
fi
http_proxy=http://my_proxy_host[:port]/ export http_proxy
ftp_proxy=http://proxy_host[:port]/ export ftp_proxy
gopher_proxy=http://proxy_host[:port]/ export gopher_proxy
wais_proxy=http://proxy_host[:port]/ export wais_proxy
#no_proxy="<some perl regex>"; export no_proxy
exec $LIBWWW_PERL/$base ${1+"$@"}
-------------
I think that the benefits of the caching are that great that it makes sense
to install the CERN server as gateway even if you have direct access. And for
ftp the directory listing includes date and size of the files.
Regards, Rainer
oooooo oooo Rainer Sinkwitz sinkwitz@chcrc.abb.ch
$ $ $ " ABB Corporate Research VOICE +41-56-768303
$"$$ """"$ CH-5405 Baden-Da"ttwil FAX +41-56-767365
o$o "$o $ooo" Switzerland
--------------------------------------
Date: Fri, 18 Nov 1994 10:56:06 +1000
From: Anthony Thyssen <anthony@cit.gu.edu.au>
Message-Id: <199411180056.AA25391@dragon.cit.gu.edu.au>
To: rainer_sinkwitz.crbc@chcrc.abb.ch
Subject: Re: wwwhtml.pl and <plaintex
In-Reply-To: Mail from '"Rainer Sinkwitz" <rainer.sinkwitz@chcrc.abb.ch>'
dated: 17 Nov 1994 12:41:47 U
| >> 3/ Is a wwwftp.pl package available.
|
| Since I'm behind a firewall here I had to install a proxy gateway with the
| CERN one being the obvious choice. With this I get caching, nice ftp
| listings,
| and a lot more. And also the libwww package does all protocols for me
| including ftp, because the real work is done by the gateway.
| I would not need a wwwftp.pl.
Hmm, can you explain to me abit more about ProxyFtp. I heard of it
and I know what it is for but I have no idea how it is used or
implemented.
Basically, How does proxy ftp allow you to use wwwlib to download ftp
files without a wwwftp.pl module.
Ok so add ignorant to my list of faults on this. Thanks for any help you
can give.
----
oooooo oooo Rainer Sinkwitz sinkwitz@chcrc.abb.ch
$ $ $ " ABB Corporate Research VOICE +41-56-768303
$"$$ """"$ CH-5405 Baden-Da"ttwil FAX +41-56-767365
o$o "$o $ooo" Switzerland