Over a million developers have joined DZone.

Serving XHTML With Classic ASP

·
How to correctly serve XHTML with Classic ASP:


If InStr(Request.ServerVariables("HTTP_ACCEPT"), "application/xhtml+xml") > 0 Then
     Response.ContentType = "application/xhtml+xml"
Else
     Response.ContentType = "text/html"
End If
Response.Charset = "utf-8"


Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}