Skip to main content

HTTP

  • Each line of the HTTP header should end in \r\n (<CR><LF>)
    • Therefore, an empty line should be two characters long.
  • First line of HTTP Request → Request Line.
    • Has METHOD URI VERSION format.
  • First line of HTTP Response → Status Line
    • Has VERSION STATUS REASON
  • Other lines have KEY:VALUE