Search

HTTP 프로토콜

카테고리
[이론] 웹 공격위협
상태
완료
게시일
2024/04/23
태그
HTTP, 웹, 웹 공격

HTTP Request

요청 라인 : 첫 줄
요청 메소드 ( GET, POST, DELETE,,,)
요청 자원
HTTP 버전
요청 헤더 : 키와 값 방식
Host : 호스트 주소(아이피 혹은 도메인)
Accept : 클라이언트가 받을 수 있는 컨텐츠
User-Agent : 브라우저 정도
Cookie : 쿠키
요청 바디 (엔티티)
기타 정보 전달

HTTP Request Header (GET방식)

요청 라인
GET /web/view.php?no=174569 HTTP/1.1
요청 헤더
헤더
Host
www.naver.com
Accept
text/html
User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64)
Accept-Encoding
gzip, deflate
Accept-Language
ko,en;q=0.0
Cookie
ga=GA1.2.1015323530.1523412579; TSSESSIONLOGINID=naver; menuEnabled=1;
요청 바디
X

HTTP Request Header (POST방식)

요청 라인
GET /web/view.php HTTP/1.1
요청 헤더
헤더
Host
www.naver.com
Accept
text/html
User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64)
Accept-Encoding
gzip, deflate
Accept-Language
ko,en;q=0.0
Cookie
ga=GA1.2.1015323530.1523412579; TSSESSIONLOGINID=naver; menuEnabled=1;
요청 바디
no=174569

HTTP Response

응답 라인
버전
상태 코드
상태 메시지
응답 헤더
Date : 통신한 날짜
Server : 서버 애플리케이션
Content-Type : 바디 데이터의 유형
Content-Length : 바디 데이터의 크기
응답 바디
HTML, JSON, Octet Stream 등

HTTP Response Header

응답 라인
HTTP/1.1 200 ok
응답 헤더
헤더
Date
Thu, 13 Sep 2018 14:16:56 GMT
Server
Apache
Expires
Thu, 19 Nov 1981 08:52:00 GMT
Content-Type
text/html; charset=utf-8
Context-Length
54
Connection
Close
응답 바디
<html> <head> <title>Hello World</title> </head> </html>
HTML
복사
HTTP Response Status Code
코드
상태 메세지
설명
1xx
정보(Information)
2xx
성공(Success)
200
OK
요청 성공
3xx
방향 바꿈(Redirection)
301
Moved Permanently
요구한 데이터는 변경된 URL 에서 찾음
4xx
클라이언트 오류 (Client Error)
403
Forbidden
요청 거부
404
Not Found
리소스가 없는 상태
5xx
서버 오류(Server Error)
500
Internal Server Error
서버가 요청을 처리 못함
503
Service Unavailable
서비스가 요청 불가능한 상태