HTTP - Body (Content, Entity, payload, data sent)

HTTP - Body (Content, Entity, payload, data sent)

About

Entities are the data sent with an HTTP message:

  • HTML page
  • Image
  • Web form parameters

An entity is better known as the body or in a network context, this is the payload of the message.

Format

The entity of an HTTP message can have an arbitrary data format, which is usually specified as a MIME type in a header field. Accept → text/css,*/*;q=0.1 ?

Example

A response can contain:

  • the page
  • an image you are downloading as an entity,

Or a request can include the parameters that you entered into a web form.

Save or display ?

See the content-disposition header





Discover More
Chrome Devtool Xhr Fetch Request
Browser - XMLHttpRequest (XHR) API

The XMLHttpRequest is a web api function that performs an resource fetch with an Aysnchronous HTTP request XMLHttpRequestAPIAJAX programmingfetch API The status of an XHR request. Value Constant...
Devtool Chrome Event Listener
DOM - Event

This section is the management of action in the Document object model (ie in the browser) An event allows for signaling that something has occurred, e.g., that an image has completed downloading. Event...
Etag - An unique identifier for a HTTP resource

The ETag HTTP response header is an identifier for a specific version of a resource. A etag comparison determines whether two representations of a resource are the same and is therefore similar to a hash...
HTML - Document

An HTML document is a well-formed HTML string (ie that contains the html root element). web page The HTML textual representation can be stored: in a string in a file or in the body of an HTTP...
HTML - Page

An html page is a logical representation of a HTML document. HTML Generally, one HTML document is one page but with the advent of javascript, you can create pages on the fly (modify the HTML DOM document)...
HTML - multipart/form-data encoding / mime

multipart/form-data is a mime part used in the enctype form attribute to encode the keyword and corresponding state of input field before sending into the body of the HTTP request formdata This encoding...
HTTP - Message (Syntax)

An http message is a textual message that consists of: a header section and an optional entity (ie body). There are two kinds of messages: requests from client to server and responses from...
HTTP - Accept header

accept is a request header that specify the mimes type of the response body that are accepted by the client (ie browser) If no Accept header field is present, then it is assumed that the client accepts...
HTTP - Get Method

The HTTP GET method is the default request retrieval action of the HTTP protocol. For example, the same than RETR in FTP. GET is the primary mechanism of information retrieval. A payload within a GET...
Http Headers Firefox
HTTP - Header (Fields)

Headers are : properties (textual name-value pairs, ie both name and value are text) located in the head of: a http request that the client sends a http response that the server sends The HTTP...



Share this page:
Follow us:
Task Runner