in reply to FTP from web pages

Hi There!

Well.... what they can do is this:
#!/usr/bin/perl -wT; sub LogAllKindOfInformationOnThisUser; LogAllKindOfInformationOnThisUser; print "Location: ftp://filetheuserrequested\n\n"; #END
This will redirect the browser to the ftp file
and you may choose to save it, or the page you're
being redirected to might refresh to the ftp URL
through a META refresh tag...

'They' can do anything...'they' are evil....

Stand up to them

GreetZ!,

ps: sub LogAllKindOfInformationOnThisUser {#Be Creative};

Replies are listed 'Best First'.
Re: Re: FTP from web pages
by Daniellek (Sexton) on Dec 20, 2000 at 15:29 UTC
    The other way (useful when generating files or extracting them from somewhere) is to:
    print "Content-Type: image/gif\n\n"; #for example while (<YOUR_FILE>) { print; }
    </CODE>
    -- Daniellek
      This is quite a nice way of doing it. However, if the script that prints this is called "download.pl" then your browser will prompt to save the gif as download.pl.

      You can supply a different default filename by adding this to the headers:
      print "Content-Disposition: attachment;filename=filename.ext";
      where you can change filename.ext to whatever you want.
        I used that once upon a time, but my Netscape didn't support that, and i still got "download.pl" as a name of file :-(

        It's IE only supported AFAIK

        -- Daniellek