HTTP Messages



HTTP Messages is how data is exchanged between server and clients. There are two types of messages.
  1. Clients send requests to triggers an action on the server.
  2. Response from the server.
HTTP makes the help of Uniform Resource identifier. Once the connection is established These messages includes requests from client to server responses from server to client which has a specific format.
HTTP requests and responses are generic message format. These messages are consisted with following format.
  1. A start line
  2. Zero or more header files.
  3. An empty line
  4. Optionally a message body


Header

  • Header basically includes General header, request header, response header and entity header. All these headers are following format.


Body

  • Consists of entity body with requests and responses. If entity body is associated content type and content length headers lines specifies nature of body associated. This actually carries HTTP requests.

Comments

Popular Posts