HTTP Message Body is the data bytes transmitted in an
HTTP
HTTP (Hypertext Transfer Protocol) is an application layer protocol in the Internet protocol suite model for distributed, collaborative, hypermedia information systems. HTTP is the foundation of data communication for the World Wide Web, wher ...
transaction message immediately following the
headers if there are any (in the case o
HTTP/0.9no headers are transmitted).
HTTP message
The request/response message consists of the following:
* Request line, such as
GET /logo.gif HTTP/1.1
or
Status line, such as
HTTP/1.1 200 OK
,
*
Headers
* An empty line
* Optional HTTP message body data
The request/status line and headers must all end with (that is, a
carriage return followed by a
line feed
A newline (frequently called line ending, end of line (EOL), next line (NEL) or line break) is a control character or sequence of control characters in character encoding specifications such as ASCII, EBCDIC, Unicode, etc. This character, or ...
). The empty line must consist of only and no other
whitespace.
The "optional HTTP message body data" is what this article defines.
Response example
This could be a response from the web server:
HTTP/1.1 200 OK
Date: Sun, 10 Oct 2010 23:26:07 GMT
Server: Apache/2.2.8 (Ubuntu) mod_ssl/2.2.8 OpenSSL/0.9.8g
Last-Modified: Sun, 26 Sep 2010 22:04:35 GMT
ETag: "45b6-834-49130cc1182c0"
Accept-Ranges: bytes
Content-Length: 12
Connection: close
Content-Type: text/html
Hello world!
The message body (or content) in this example is the text ''Hello world!''.
See also
*
HTTP
HTTP (Hypertext Transfer Protocol) is an application layer protocol in the Internet protocol suite model for distributed, collaborative, hypermedia information systems. HTTP is the foundation of data communication for the World Wide Web, wher ...
*
HTTP compression
*
List of HTTP headers
*
List of HTTP status codes
Hypertext Transfer Protocol (HTTP) response status codes are issued by a server in response to a client's request made to the server. It includes codes from IETF Request for Comments (RFCs), other specifications, and some additional codes us ...
*
Web cache
A web cache (or HTTP cache) is a system for optimizing the World Wide Web. It is implemented both client-side and server-side. The caching of multimedia and other files can result in less overall delay when web browser, browsing the Web.
Parts o ...
Application layer protocols
message body
Internet protocols
Network protocols
World Wide Web Consortium standards
{{Web-stub