.NODE

Accessing Web Servers

To request documents from Web servers, users must know the URLs at which those documents reside. Users can request documents from local Web servers (i.e., ones residing on users' machines) or remote Web servers (i.e., ones residing on machines across a network).

To understand how a Web browser is able to locate documents on a Web server, it is helpful for you to know the following terms:


  1. Host: A host is a computer that stores and maintains resources, such as Web pages, databases and multimedia files.
  2. Domain: A domain represents a group of hosts on the Internet. Each domain has a domain name, also known as a Web address, which uniquely identifies the location of a business or organization on the Internet.
  3. Fully qualified domain name: A fully qualified domain name (FQDN), also known as the machine name, contains a host (for example, www for World Wide Web) and a domain name, including a top-level domain (TLD). The top-level domain is the last and most significant component of a fully qualified domain name.

Local Web servers can be accessed in two ways: through the machine name, or through localhosta host name that references the local machine. We use localhost in this book for demonstration purposes. To determine the machine name in Windows 98, right click Network Neighborhood, and select Properties from the context menu to display the Network dialog. In the Network dialog, click the Identification tab. The computer name displays in the Computer name: field. Click Cancel to close the Network dialog. In Windows 2000, right click My Network Places and select Properties from the context menu to display the Network and Dialup Connections explorer. In the explorer, click Network Identification. The Full computer name: field in the System Properties window displays the computer name. In Windows XP, select Start > Control Panel, which displays the Control Panel window. Double click System in the Control Panel window, which opens the System Properties window. Select the Computer Name tab in the System Properties window; the Full computer name: field displays the computer name.

To request documents from the Web server, users must know the fully qualified domain names (machine names) on which the Web server software resides. For example, to access the documents from Deitel's Web server, you must know the FQDN www.deitel.com. The FQDN www.deitel.com indicates that the host is www and the toplevel domain is com. In a FQDN, the TLD often describes the type of organization that owns the domain. For example, usually the com TLD refers to a commercial business, the org TLD to a nonprofit organization and the edu TLD to an educational institution. In addition, each country has its own TLD, such as cn for China, et for Ethiopia, om for Oman and us for the United States.

Each FQDN corresponds to a numeric address called an IP (Internet Protocol) address, which is much like a street address. Just as people use street addresses to locate houses or businesses in a city, computers use IP addresses to locate other computers on the Internet. Each internet host computer has a unique IP address. Each address comprises four sets of numbers separated by periods, such as 63.110.43.82. A Domain Name System (DNS) server is a computer that maintains a database of FQDNs and their corresponding IP addresses. The process of translating FQDNs to IP addresses is called a DNS lookup. For example, to access the Deitel Web site, type the FQDN www.deitel.com into a Web browser. The DNS lookup translates www.deitel.com into the IP address of the Deitel Web server (63.110.43.82). The IP address of localhost is always 127.0.0.1. This address, also known as the loopback address, can be used to test Web applications on your local computer.

Introduction to Computers, the Internet and World Wide Web

Introduction to C++ Programming

Introduction to Classes and Objects

Control Statements: Part 1

Control Statements: Part 2

Functions and an Introduction to Recursion

Arrays and Vectors

Pointers and Pointer-Based Strings

Classes: A Deeper Look, Part 1

Classes: A Deeper Look, Part 2

Operator Overloading; String and Array Objects

Object-Oriented Programming: Inheritance

Object-Oriented Programming: Polymorphism

Templates

Stream Input/Output

Exception Handling

File Processing

Class string and String Stream Processing

Web Programming

Searching and Sorting

Data Structures

Bits, Characters, C-Strings and structs

Standard Template Library (STL)

Other Topics

Appendix A. Operator Precedence and Associativity Chart

Appendix B. ASCII Character Set

Appendix C. Fundamental Types

Appendix D. Number Systems

Appendix E. C Legacy Code Topics

Appendix F. Preprocessor

Appendix G. ATM Case Study Code

Appendix H. UML 2: Additional Diagram Types

Appendix I. C++ Internet and Web Resources

Appendix J. Introduction to XHTML

Appendix K. XHTML Special Characters

Appendix L. Using the Visual Studio .NET Debugger

Appendix M. Using the GNU C++ Debugger

Bibliography

show all menu





C++ How to Program
C++ How to Program (5th Edition)
ISBN: 0131857576
EAN: 2147483647
Year: 2004
Pages: 627
Similar book on Amazon

Flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net