Quoting Ranga Nathan <[EMAIL PROTECTED]> [26 Feb-02 10:45]:
> When a CGI scripts prints an XML file to IE, it renders it as
> plain text!!!  But when it GETs an XML file with the xml
> extension it renders it with collapse/expand view. Wonder if
> anyone has an angle on this. How can one tell IE from a CGI to
> collaps/expand? I tried different mime types.. IE simply seems
> to ignore it!!!

IE tries to be "intelligent", and use the file extension, rather
than the content-type header, to determine what to do with a
file.  Try invoking your script with something like .xml at the
end (eg., www.foo.com/cgi-bin/script.pl?stupid-broweser=xml), and
see what happens.

(darren)

-- 
Mosher's Law of Software Engineering:
Don't worry if it doesn't work right.
If everything did, you'd be out of a job.

Reply via email to