Thank you for your reply.
Actually the code is working on netscape, and it also works on IE of some
machines but not all of them.
I'm wondering maybe something related to machine configuration.
Eric Sun
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of $Bill
Luebkert
Sent: Wednesday, April 25, 2001 6:21 PM
To: Eric Sun
Cc: Perl-Win32-Web Mailing List
Subject: Re: Content type
Eric Sun wrote:
>
> Hi,
>
> I have a search page and let clients to select page format, either Html or
> Excel, then produce output for that format.
> It works on Netscape but got trouble on IE
> The follow statements are used:
> if($Content_type==1){
> print "Content-type: application/vnd.ms-excel \n\n";
> }
>
> else {
> print "Content-type: text/html\n\n";
> }
>
> Any hints?
MSIE uses the file .ext to determine content-type.
You could try this (where $file has the proper .ext MSIE wants):
Content-type: $mimetype; name="$file"
Content-disposition: $attach; filename=$file # no quotes on $file for MSIE ?
I haven't tested it, but I've read that MSIE doesn't like the quotes
around $file on the 2nd line - haven't tested.
--
,-/- __ _ _ $Bill Luebkert ICQ=14439852
(_/ / ) // // DBE Collectibles http://www.todbe.com/
/ ) /--< o // // Mailto:[EMAIL PROTECTED] http://dbecoll.webjump.com/
-/-' /___/_<_</_</_ http://www.freeyellow.com/members/dbecoll/
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web