This section demonstrates how an HTTP server responds to requests for XHTML documents. Requesting other types of documents is similar. We discuss serving these documents using the IIS and Apache HTTP Servers. The server sends XHTML documents to the client as static web pages. The server response for a given XHTML document is always the same. For other types of documents, such as PHP, Ruby on Rails, ASP.NET and Java-Server Faces, the appropriate language interpreter or scripting engine first generates XHT-ML content, then transmits it to the client over HTTP. These are often referred to as dynamic web pages, because the results of these requests might vary based on numerous factors, such as user input, the time of day and current database content.
Copy test.html from the Chapter 21 examples directory into the directory C:\Chapter21Examples (or to the directory you created in Section 21.6 or 21.7). This is the directory that is referenced by our virtual directory (Chapter21Test). [Note: A file cannot be copied directly to a virtual directory, because a virtual directory is only a name referring to a physical local directory.] To request the document from IIS or Apache, start the server, launch a web browser and enter the XHTML document’s URL (i.e., http:// localhost/Chapter21Test/test.html) in the Address field. Figure 21.12 displays the result of requesting test.html in Internet Explorer 7.
Copyright © 2018-2020 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.