HTTP requests and response format

HTTP requests, and responses, share similar structure and are composed of:

  1. start-line, (още известен и като request line) describing the requests to be implemented, or its status of whether successful or a failure. This start-line is always a single line.
  2. An optional set of HTTP headers specifying the request, or describing the body included in the message.
  3. A blank line indicating all meta-information for the request has been sent.
  4. An optional body containing data associated with the request (like content of an HTML form), or the document associated with a response. The presence of the body and its size is specified by the start-line and HTTP headers.

Литература:

https://developer.mozilla.org/en-US/docs/Web/HTTP/Messages

Вашият коментар

Вашият имейл адрес няма да бъде публикуван. Задължителните полета са отбелязани с *