Hi Shannon, This script works for me (IE and NS) and as you can see it is a compilation of several hints posted on this list :)
#!/usr/local/bin/perl -T print "Content-type: application/x-foobar\n\n"; $file = $ENV{PATH_INFO}; $file =~ s/[^\w.-]+//g; $file = "/somedir/download/$file"; open(DOWNLOAD,"<$file") || die "could not open file for download.\n"; while(<DOWNLOAD>) { print $_; } close(DOWNLOAD); exit; You should be able to download files from /somedir/download/ using URL: http://www.hostname.com/cgi-bin/download.cgi/file.txt. Hope it works for you too. tchau Jan-Willem On Tue, 30 Oct 2001, Shannon Murdoch wrote: > Don't take offense RaFaL =) > > I tried the idea you had and as you said, Netscape automatically brought up > a download window but Internet Explorer just displayed it's contents in the > browser window (bugger). > > Any ideas? > > -Shan > > > From: [EMAIL PROTECTED] (Rafal Pocztarski) > > Newsgroups: perl.beginners.cgi > > Date: Mon, 29 Oct 2001 13:58:47 +0100 > > To: [EMAIL PROTECTED] > > Subject: Re: Auto-initialising a client-side download > > > > Shannon Murdoch wrote: > >> > >> Oh, I only just found there was more beyond the first quoted block of text! > >> I'll look in to it now. > > > > That's because most of people here can't quote at all. There is always > > more text below any quoted text im my messages. Why would I quote > > anything if I did't want to comment or answer it? > > > > - RaFaL Pocztarski, [EMAIL PROTECTED] > > > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]