----- Original Message -----
From: "Brad Thomson" <[EMAIL PROTECTED]>
To: "Gareth Walters" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, January 04, 2002 3:10 PM
Subject: Re: [SLUG] Slightly OT. overriding filename with headers from CGI
program.


> On Sat, 19 Jan 2002 15:51, Gareth Walters <[EMAIL PROTECTED]>
wrote:
> > > On Sat, Jan 19, 2002 at 02:56:18PM +1100, Gareth Walters wrote:
> > Thanks Andrew, that worked.
> You didn't perhaps use Internet Exploiter to test this did you?

I am afraid so.

> I was curious enough about this, having had uses before to do this in a
few
> different browsers. The script was called test.cgi, the page title was
> test_file.txt and the Content-disposition attachment was foo.txt.

I too had done this but by happy coincidence IE users will be the
only ones interested in running this particular script, and after reading
http://msdn.microsoft.com/library/default.asp?url=/workshop/networking/monik
er/overview/appendix_a.asp
I discovered I don't have to set the Content-type accurately either
(wow a security flaw worked in my favour)

> Mozilla, Konqueror and Links: Saved as test.cgi
> Emacs/W3: Saved as test_file.txt
> Lynx/Internet Exploiter: Saved as foo.txt
> Gotta love it.
> It seems that if you want cross browser compatibility you'd have to do
> something whacky like redirect to page where the page itself, title and
> Content-disposition all pointed to the filename you wanted.

All of which make this little script of mine not worth the
effort as its reason for being is to make it possible to
download files with a browser from Bonsai straight from a CVS
repository if its more complicated than a couple of clicks its too
complicated.

Anyway I am relatively happy with the solution now.


---Gareth Walters

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to