HTTP Body Data
   HOME

TheInfoList



OR:

HTTP Message Body is the data bytes transmitted in an
HTTP The Hypertext Transfer Protocol (HTTP) 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 We ...
transaction message immediately following the headers if there are any (in the case o
HTTP/0.9
no 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 Status (Latin plural: ''statūs''), is a state, condition, or situation, and may refer to: * Status (law) ** City status ** Legal status, in law ** Political status, in international law ** Small entity status, in patent law ** Status confere ...
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 A carriage return, sometimes known as a cartridge return and often shortened to CR, or return, is a control character or mechanism used to reset a device's position to the beginning of a line of text. It is closely associated with the line feed ...
followed by a
line feed 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 a ...
). 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 The Hypertext Transfer Protocol (HTTP) 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 We ...
*
HTTP compression HTTP compression is a capability that can be built into web servers and web clients to improve transfer speed and bandwidth utilization. HTTP data is compressed before it is sent from the server: compliant browsers will announce what methods a ...
*
List of HTTP headers A ''list'' is any set of items in a row. List or lists may also refer to: People * List (surname) Organizations * List College, an undergraduate division of the Jewish Theological Seminary of America * SC Germania List, German rugby union ...
*
List of HTTP status codes This is a list of Hypertext Transfer Protocol (HTTP) response status codes. 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, ...
*
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 multimedias and other files can result in less overall delay when browsing the Web. Parts of the sys ...
Application layer protocols Hypertext Transfer Protocol Internet protocols Network protocols World Wide Web Consortium standards {{Web-stub