Re: .php file extension in browsers
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: .php file extension in browsers

From: John Dunlop <usenet+2004@john.dunlop.name>
Date: Fri Oct 07 2005 - 21:26:38 CEST

Dikkie Dik wrote:

> John Dunlop wrote:
>
> > http://msdn.microsoft.com/workshop/networking/moniker/overview/appendix_a.asp
>
> Thanks. This explains a lot.

what, you mean, you understood that?? I salute you. it took me god knows
how many readings just to get the gist of it.

> I have written a translation script that will convert a HTML page to PML
> (a plaintext format that can be converted to Palmreader documents).
> However, as the first HTML tags were processed, IE kept displaying the
> results as HTML, despite the header stating it was text/plain.
> At some point during development, it got displayed as text.

IE recognises text/plain as an 'ambiguous' type (although the doc does
mention an exception, IE6 for XP SP2), so to disambiguate it it scans the
contents (the first 256 bytes) and determines what it thinks should be the
"true" type, and thus overrides your Content-Type header (step 2).

Broken As Designed.

-- 
Jock
Received on Tue Oct 18 02:39:03 2005