Harman Patil (Editor)

HTTP message body

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

HTTP Message Body is the data bytes transmitted in an HTTP transaction message immediately following the headers if there is any (in the case of HTTP/0.9 no headers are transmitted).

Contents

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). 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:

    References

    HTTP message body Wikipedia


    Similar Topics