"HTTP 요청, HTTP 응답"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
(사용자 2명의 중간 판 7개는 보이지 않습니다)
8번째 줄: 8번째 줄:
*[[웹브라우저]]가 [[웹서버]]로 요청
*[[웹브라우저]]가 [[웹서버]]로 요청
*구성: 요청줄, 요청헤더, 빈줄, 부가메시지
*구성: 요청줄, 요청헤더, 빈줄, 부가메시지
<source lang='text'>
<syntaxhighlight lang='text'>
GET /index.html HTTP/1.1
GET /index.html HTTP/1.1
Host: www.example.com
Host: www.example.com
</source>
</syntaxhighlight>
<syntaxhighlight lang='text'>
POST /contacts/new HTTP/1.1
Host: www.zetawiki.com
Content-Type: text/html; charset=UTF-8
 
Name=Eric&Age=26
</syntaxhighlight>


==HTTP 응답==
==HTTP 응답==
*[[웹서버]]가 [[웹브라우저]]로 응답
*[[웹서버]]가 [[웹브라우저]]로 응답
*구성: 상태줄, 응답헤더, 빈줄, 부가메시지
*구성: 상태줄, 응답헤더, 빈줄, 부가메시지
<source lang='text'>
<syntaxhighlight lang='text'>
HTTP/1.1 200 OK
HTTP/1.1 200 OK
Date: Mon, 23 May 2005 22:38:34 GMT
Date: Mon, 23 May 2005 22:38:34 GMT
35번째 줄: 42번째 줄:
</body>
</body>
</html>
</html>
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==
*[[HTTP 요청 방식]]
*[[HTTP 요청 방식]]
*[[HTTP 헤더 필드]]
*[[HTTP 응답 코드]]
*[[HTTP 응답 코드]]
*[[사용자 에이전트]]
*[[사용자 에이전트]]
*[[HTTP]]
*[[HTTP]]
*[[/var/log/httpd/access_log]]


==참고 자료==
==참고==
*https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol
* {{영어위키백과|Hypertext Transfer Protocol}}
*RFC 1945
*RFC 1945


[[분류: HTTP]]
[[분류: HTTP]]

2021년 7월 17일 (토) 18:15 기준 최신판

HTTP request message; HTTP request
HTTP 요청 메시지; HTTP 요청
HTTP response message; HTTP response
HTTP 응답 메시지; HTTP 응답

1 HTTP 요청[ | ]

GET /index.html HTTP/1.1
Host: www.example.com
POST /contacts/new HTTP/1.1
Host: www.zetawiki.com
Content-Type: text/html; charset=UTF-8

Name=Eric&Age=26

2 HTTP 응답[ | ]

HTTP/1.1 200 OK
Date: Mon, 23 May 2005 22:38:34 GMT
Server: Apache/1.3.3.7 (Unix) (Red-Hat/Linux)
Last-Modified: Wed, 08 Jan 2003 23:11:55 GMT
ETag: "3f80f-1b6-3e1cb03b"
Content-Type: text/html; charset=UTF-8
Content-Length: 131
Accept-Ranges: bytes
Connection: close

<html>
<head>
  <title>An Example Page</title>
</head>
<body>
  Hello World, this is a very simple HTML document.
</body>
</html>

3 같이 보기[ | ]

4 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}