NSAPI Programmer's Guide for Enterprise Server 4.0
Table of Contents | Previous
| Next
| Index
| Bookshelf
NSAPI Programmer's Guide for Enterprise Server 4.0
The HyperText Transfer Protocol (HTTP) is a protocol (a set of rules that describes how information is exchanged) that allows a client (such as a web browser) and a web server to communicate with each other. This appendix provides a short introduction to a few HTTP basics. For more information on HTTP, see the IETF home page at:
http://www.ietf.org/home.html
HTTP is based on a request/response model. The browser opens a connection to the server and sends a request to the server.
The server processes the request and generates a response which it sends to the browser.The server then closes the connection.
Netscape Enterprise Server 3.x and 4.0 supports HTTP 1.1. Previous versions of the server supported HTTP 1.0. The server is conditionally compliant with the HTTP 1.1 proposed standard, as approved by the Internet Engineering Steering Group (IESG) and the Internet Engineering Task Force (IETF) HTTP working group. For more information on the criteria for being conditionally compliant, see the Hypertext Transfer Protocol--HTTP/1.1 specification (RFC 2068) at:
http://www.ietf.org/html.charters/http-charter.html
A request from a browser to a server includes the following information:
A browser can request information using a number of methods. The commonly used methods include the following:
The browser can send headers to the server. Most are optional. Some commonly used request headers are shown in Table 6.4.
Table 6.4 Common request headers
If the browser has made a POST
or PUT
request, it sends data after the blank line following the request headers. If the browser sends a GET
or HEAD
request, there is no data to send.
The server's response includes the following:
The server sends back a status code, which is a three-digit numeric code. The five categories of status codes are:
Table 6.5 Common HTTP status codes
The response headers contain information about the server and the response data. Common response headers are shown in Table 6.6
.
Table 6.6 Common response headers
The server sends a blank line after the last header. It then sends the response data such as an image or an HTML page.
Table of Contents | Previous
| Next
| Index
| Bookshelf
Last Updated: 08/12/99 14:33:17
Copyright © 1999 Netscape Communications Corporation