【正文】
es ? ContentEncoding: ? ContentLength: ? ContentType: ? Expires: ? LastModified: ? extensionheader ? Body – content (usually html) Status Codes ? 200 OK ? 201 created ? 202 accepted ? 204 no content ? 301 moved perm. ? 302 moved temp ? 304 not modified ? 400 bad request ? 401 unauthorized ? 403 forbidden ? 404 not found ? 500 int. server error ? 501 not impl. ? 502 bad gateway ? 503 svc not avail Statelessness ? Because of the Connect, Request, Response, Disconnect nature of HTTP it is said to be a stateless protocol – . from one web page to the next there is nothing in the protocol that allows a web program to maintain program “state” (like a desktop program). – “state” can be maintained by “witchery” or “trickery” if it is needed Maintaining program “state” ? Hidden variables (input type=hidden ? Sessions – Special header tags interpreted by the server ? Used by ASP, PHP, JSP – Implemented at the language api level