126 CHAPTER 5 PERMUTATIONS PATTERN Focusing on (Web hosting isp)
126 CHAPTER 5 PERMUTATIONS PATTERN Focusing on the HTTP header Accept, you can see that the values are a series of MIME- encoded identifiers that the client can accept and process. The order and type of the identifier are important because they specify the priority of the content that the client wants to receive from the server. The logic is to send the best content available that has the best priority defined by the client. This, for example, forces the server to send HTML content before plain text content. As per the HTTP specification, the priority of the example request-provided MIME types is as follows: 1. application/xhtml+xml 2. text/xml 3. application/xml 4. image/png 5. text/html;q=0.9 6. text/plain;q=0.8 7. */*;q=0.5 The ordering of the identifiers depends on the identifier specialization and its q value. When a MIME-type identifier has no q value, it means a default value of 1.0. When there is a q value, it E B V N means to lower the priority of the MIME-type identifier to the value specified by the q value. Identifier specialization occurs when one identifier is a higher priority because the content specified is more specific than the other identifier. In the list of priorities, the identifier text/ xml is more specific than */* because */* means everything. Additionally, text/xml is more specific than text/*, and hence text/xml is a higher priority. What you should notice is that the first MIME identifier from the HTTP conversation is text/xml, and the second is application/xml. Yet in the priority ordering, the first MIME identifier is application/xhtml-xml. This is an assumption I made after having read the HTTP and MIME specifications,2 but I feel it s a bug that happens to be correct. Tounderstand why this bughappens tobecorrect, the example request needs to be dissected. The MIME-type identifiers application/xml, text/xml, and application/xhtml-xml are considered specific, and each has a q value of 1. If the order of the MIME types as issued by the browser is followed, it means that the browser prefers receiving XML content to HTML or XHTML content. From the specifications, application/xml and text/xml MIME types contain XML content, although the XML content could be XHTML content. Reading the specification solves the problem because it indicates that a more specific MIME type is ordered before a less specific MIME type. This means application/xhtml-xml is ordered before application/xml and text/xml because application/xhtml-xml is specifically formatted XML. Having solved this bug (which could be considered an interesting feature) and having sent the proper representation, figuring out what to send with respect to the Accept HTTP header does not get any better. Following is another HTTP request that asks for some content. 2. http://www.w3.org/TR/xhtml-media-types/
Note: If you are looking for cheap and reliable webhost to host and run your mysql application check mysql web server services.