Servlet,Servlet开发人员 --->Servlet API --> Servlet Container The parts of an HTTP message
Message part Description The initial line: Specifies the purpose of the request or response message 例子:GET /reports/sales/index.html HTTP/1.0 The header section:Specifies the meta-information, such as size, type, and encoding, about the content of the message A blank line: An optional message body: The main content of the request or response message
下面是一个Response的例子:
HTTP/1.0 200 OK Date: Tue, 01 Dec 2001 23:59:59 GMT Content-Type: text/html Content-Length: 52