http content-type text/html
Content-Type: text/html charsetutf-8. To do this you will need to have access to server settings or serve your document via scripting (see Setting the HTTP charset parameter for more information). For XML (including XHTML), use the encoding Youll need the character set to interpret the pages characters for text processing for a search engine or keyword extractor. The content type should be in the web servers HTTP header for the page, but it also can be set in an HTML files tag, or an XML files tag. Eric Law (ex-Microsoft) has written about The Performance Impact of META REFRESH. If we express the previous HTTP header in HTML, we getHTTP/1.1 200 OK Accept-Ranges: bytes Connection: Keep-Alive Content-Length: 200 Content-Type: text/html charsetutf-8 Date: Thu, 26 Mar 2015 05 Content-Type: text/html charsetutf-8 Content-Type: multipart/form-data boundarysomething.The request looks something like this (less interesting headers are omitted here): POST /foo HTTP/1.1 Content-Length: 68137 Content-Type: multipart/form-data boundary "Content-Type: text/html". Which your entire header response will look like.The encoding of a file is discovered by the Content-Type, either in the HTML meta tag or as part of the HTTP header. text/plain.Here is a little HTML form content type test page Ive created that is setup with the different content types.Universally, when the content type is set for a form, that content type is passed as a header in the request For example, using the "Content-type" header value defined in a HTTP response, the browser can open the file with the proper extension/plugin.Note that most language have a default "Content-type" of "text/html". text/html[RFC1866]. The text/html content type is an Internet Media Type as well as a MIME content type. Using HTML in MIME messages allows the full richness of Web pages to be available in e-mail. HTTP/1.1 200 OK Content-Length: 31225 Content-type: text/html Expires: Mon, 29 Sep 2014 10:00:00 GMT. [RESPONSE BODY]. Notice that if the date format is not correct, it will be considered stale. No doctype. So far, so good.