in k-meleon it does nothing -- i mean it refuses (without an error) to do
anything at all with the url.
Re: can't load a cpp file
Posted by:
Brian
Date: August 21, 2001 03:16AM
in the new version a "save as..." box comes up, still not very useful when you want to view it as text... bitch at the sysadmin
Re: can't load a cpp file
Posted by:
Mark D. Anderson
Date: August 21, 2001 04:27AM
It is true that the server sends back "Content-Type: application/octet-stream"
for this url.
nevertheless, it seems like whatever IE does in this respect should be mimic'd.
i'm not sure how IE decides that an .exe is to be downloaded, while a .cpp
is to be displayed; perhaps it actually looks at the content itself to guess.
or maybe it has a builtin list of "text-like" suffixes.
-mda
Re: can't load a cpp file
Posted by:
po
Date: August 21, 2001 06:49AM
on a similar note, i know of a server that had been inadvertantly set to a default type of text/plain instead of text/html (since corrected)... k-meleon displayed the html source for the page, taking it at it's word, but IE somehow 'knew' to display an html page... i don't really know about the advisability of trying to mimic the non-standard behavior of IE, but i guess it's apt to be an issue...
maybe the user could choose between a 'smart' mode and a 'literalist' mode...