express

How does HTTP request looks like

mooonQ 2020. 5. 15. 14:57

'HTTP Request'

GET / HTTP/1.1
Host: erbosoft .com
Connection: keep-alive
Another-Headers

{"aaaUser":{"attributes":{"name":"admin","pwd":"**********"}}}

First line: Request Method, URL, Protocol version

- The request method

- The request target, indicating what is to be operated on.

- The protocol name and version, in this case, "HTTP/1.1"

From Second line to blank line: Request Header

- The HOST, Connection etc. communicates information about the client environment.

The line after the blank line: Requset Body

- This contains the actual request being sent to the HTTP Server.