Re: [WSG] Sending correct MYME-TYPE and content

2007-02-11 Thread Lachlan Hunt
Pierre-Henri Lavigne wrote: Regards to http://www.w3.org/MarkUp/2004/xhtml-faq#ie I just discovered, I was just wondering if we could use : ?php if (stristr($_SERVER[HTTP_ACCEPT],application/xhtml+xml)) { You need to check the q value. e.g. If a browser sends this: Accept:

Re: [WSG] Sending correct MYME-TYPE and content

2007-02-11 Thread Subbu Allamaraju
On 2/11/07, Lachlan Hunt [EMAIL PROTECTED] wrote: Pierre-Henri Lavigne wrote: Regards to http://www.w3.org/MarkUp/2004/xhtml-faq#ie I just discovered, I was just wondering if we could use : ?php if (stristr($_SERVER[HTTP_ACCEPT],application/xhtml+xml)) { You need to check the q value.

Re: [WSG] Sending correct MYME-TYPE and content

2007-02-11 Thread Lachlan Hunt
Subbu Allamaraju wrote: On 2/11/07, Lachlan Hunt [EMAIL PROTECTED] wrote: header(Content-Type: application/xhtml+xml; charset=UTF-8); You don't need to include the charset parameter in this header for XML MIME types (this does not apply to text/html). XML is designed as a self describing

Re: [WSG] Sending correct MYME-TYPE and content

2007-02-10 Thread Matthew Smith
Quoth Pierre-Henri Lavigne at 02/11/07 05:03... snip / What do you think about ? I suppose if the trick works, everyone will use it. I never heard about it before. Any informations / suggestions about it ? Setting MIME type by accept string for XHTML is certainly used - I use it myself.

Re: [WSG] Sending correct MYME-TYPE and content

2007-02-10 Thread Pierre-Henri Lavigne
Matthew Smith wrote: Quoth Pierre-Henri Lavigne at 02/11/07 05:03... snip / What do you think about ? I suppose if the trick works, everyone will use it. I never heard about it before. Any informations / suggestions about it ? Setting MIME type by accept string for XHTML is certainly used -