User Tools

Site Tools


protocols:http

This is an old revision of the document!


HTTP

Intro

HTTP can run in two modes:

  • Non-Persistent - each response/request is sent over separate TCP connection
  • Persistent - re-using same TCP connection for all request/responses

There are two HTTP message types:

  • Request
  • Response

Both have a start line, headers, an empty line and optional body.

HTTP Request Message

First line in the Request Message is called a request line. The subsequent lines are called headers line.

Request line has three fields:

  1. Method
  2. URL
  3. HTTP version

HTTP Response Message

First line in Response Message is called a status line. Then we have six header lines and then entity body.

protocols/http.1782487084.txt.gz · Last modified: by v1ctor