💬
GET /search?q=hello&hl=ko HTTP/1.1
Host: www.google.com
💬
HTTP/1.1 200 OK
Content-Type: text/html;charset=UTF-8
Content-Length: 3423
<html>
<body>...</body>
</html>
HTTP 메시지 구조 |
---|
start-line 시작 라인 |
header 헤더 |
empty line 공백 라인 (CRLF) |
message body |
요청 메시지
💬
GET /search?q=hello&hl=ko HTTP/1.1
start-line = request-line / status-line
request-line = method SP (공백) request-target SP HTTP-version CRLF (엔터)
absolute-path[?query] (절대경로[?쿼리])
응답 메시지
💬
HTTP/1.1 200 OK
start-line = request-line / status-line
status-line = HTTP-version SP status-code SP reason-phrase CRLF
header-field = field-name “:” OWS field-value OWS (OWS : 띄어쓰기 허용)
용도
용도