Hi Lawrence,

Lawrence Statton wrote on 15.12.2004:

>
>
>Here's a trivial example to get you started
>
>#!/usr/bin/perl 
>use strict;
>use warnings;
>
>use CGI;
>
>my $query = new CGI;
>
>print $query->header(-type => 'text/plain', 
>                     content_disposition => 'attachment; filename="foo.txt"');

Thank you. Two out of three browsers I tested (IE 5/Mac, Safari) ignore the 
content-disposition header if the content-type is set to text/plain. It does 
work with the application/x-tex type you mentioned in your earlier message.

Although the browsers are supposed to ignore the content-type if they receive 
the content-disposition header, only Firefox seems to honor this.

Thanks again,

Jan
-- 
Imagine if every Thursday your shoes exploded if you tied them the usual way. 
This happens to us all the time with computers, and nobody thinks of 
complaining. - Jeff Raskin

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to