Re: Patch: FTP through HTTP-Proxy (Squid)
Marc Langheinrich (marclang@cs.washington.edu)
Mon, 21 Jun 1999 08:42:57 +0900
On Sun, Jun 20, 1999 at 01:04:56AM +0200, Gisle Aas wrote:
> There is something I don't understand here. If you set:
>
> $ua->proxy("ftp" => "http://squid.my.site.com");
>
> and then perform a 'GET ftp://ftp.redhat.com'-request, don't you
> already get what you describe above. The LWP/Protocol/ftp.pm module
> should not be involved at all.
Oops, guess you're right (afterall, you wrote this package). :-) I have to
confess I never tried that before, I was always thinking "Geeze, I whish
something like this would work", then looking at the ftp.pm module and
seeing the "if (defined $proxy)" line got all excited on how I could patch
this so that it'd work for my setup here.
Next time I think something's missing from LWP I should probably try it out
first - given the latest example it's probably already in there! How about
one that deletes stupid patches from the libwww-perl Hypermail archive?!?
:-)
Marc
--
Marc Langheinrich
marclang@cs.washington.edu