HTTP Protocol

message format

Request Message

1
2
3
4
5
6
-1- REQUEST: [Method]<space>[URL]<space>[Protocol Version]<space><\r\n>
-2- HEAD : [FIELD]:[VALUE]<\r\n>
...
-3- SPLITE : <\r\n>
-4- DATA :
...

Response Message

1
2
3
4
5
6
-1- REQUEST: [Protocol Version]<space>[STATUS CODE]<space>[STATUS MESSAGE]<space><\r\n>
-2- HEAD : [FIELD]:[VALUE]<\r\n>
...
-3- SPLITE : <\r\n>
-4- DATA :
...

Status Codes

1xx:Informational
2xx:Success
3xx:Redirection
4xx:Client Error
5xx:Server Error

HTTP Status Codes

HTTP Methods

  • GET
  • POST
  • HEAD
  • PUT
  • DELETE
  • CONNECT
  • OPTIONS
  • TRANCE