PHTML
Derek Broughton
news at pointerstop.ca
Thu Sep 18 18:58:25 UTC 2008
Rashkae wrote:
> Derek Broughton wrote:
>> Markus Schönhaber wrote:
>>
>>> Derek Broughton:
>>>
>>>> Markus Schönhaber wrote:
>>>>> Nothing you do on your local machine will change the behaviour of the
>>>>>> server for www.xplanner.org.
>>>> Nothing? I find that really hard to believe, though I admit I'm having
>>>> some trouble myself...
>>> I'm talking about the server's behaviour itself, not about circumventing
>>> the effects this behaviour (like using a proxy that changes the
>>> Content-Type header or whatever).
>>> If you can come up with a generally applicable way how I, just by
>>> fiddling around with my local machine, can manipulate other people's
>>> servers, please tell me. I'd be very interested.
>>
>> But you shouldn't need to manipulate anybody else's server - your browser
>> should be capable of taking an "application/x-httpd-php" content type
>> (or "useless/garbage") and handling it the same way it handles
>> "text/html".
>
> Eh, no, not at all.
Er, yes. It's simply a matter of defining the associations in the browser.
> this is the way IE generally works. If there is a
> file name in the URL, IE will use the extension to figure out the file
> type and open with the appropriate application.
In any case, IE _does_ honour the content type header.
> All other browsers, Firefox, Safari, (I don't know about Opera) always
> trust the mime type header. If it's "useless garbage" the stream gets
> treated, for all intents and purposes, the same as "binary/application
> octec-stream" (paraphrasing from memory, so probably not exactly right)
Not if there's a "useless/garbage" mimetype defined for your browser - which
was my point: you can do that. It's not _right_ to be forcing your browser
to handle mimetypes that are only being delivered by a misconfigured
server, but it should at least be possible.
--
derek
More information about the ubuntu-users
mailing list