Accessing an HTML Document<

Domain Hosting image
Web Hosting
Dedicated server
ssl certificate
Web Design image
Email

The most basic example of a request/response paradigm is accessing one HTML document and displaying it on your browser. Given a URL, the browser sends a request to the server asking for the document. When the server receives this request, it looks for the document. If it finds it, it sends a success message back to the browser, tells the browser the type of document, and sends the actual document. If it cannot find the document or for some other reason cannot send it, it sends an error message back to the browser instead.
<p align="justify">
What if ' the HTML document has an inline image? When the browser receives
the HTML document, it parses the document so that it can display it properly. If
it finds an <img> tag, it sends another request to the server and accesses that
image separately. If it successfully receives the image from the server, it displays
it inline along with the rest of the HTML document; otherwise, it displays a
broken image.
<p align="justify">
A common misconception among beginning CGI programmers is that if you want to send an HTML file with inline images, you need to send both the HTML file and the images upon request. This is rot the case. When the browser receives the data, it processes the information. The client parses the document and decides whether it needs to make another request to the server. When your browser accesses an HTML file with three inline images, it makes four separate requests to the server: one for the document and one for each image.
<p align="justify">
What happens if you request a particular location in an HTML file? For example, suppose index.html looks like the following:
<p align="justify">
<html<head><title>Hello, World</title>

</head>
<body><h1>Hello, World</h1>
<a name="chapter1">
<h2>Chapter1</h2>
<p>Once upon a time...</p></a>
<a name="chapter2">
<h2>Chapter2</h2>
<p>The end.</p></a>
</body>
</html>
<p align="justify">
the client only requests the file index.html. After it retrieves the file, it looks for the HTML tag <a name= "chapter2">. If it finds it, it displays the HTML file starting at that tag. You can see that both the client and server process the data to some extent. The server finds the data, determines the data type, and sends that information back to the client. The Web client receives the data, looks at the data, and determines whether it needs to do anything else.



Domain Name Search

www.


Copyright (C) 2007. Web Domain design hosting. All rights reserved.