HTTP Message
Web(HTTPS)

HTTP Message

1. HTTP

- TCP/UDP ๊ธฐ๋ฐ˜์œผ๋กœ ์›น์—์„œ ์‚ฌ์šฉํ•˜๋Š” ํ”„๋กœํ† ์ฝœ

 

2. Message

- Request Message : ์›น ํด๋ผ์ด์–ธํŠธ > ์›น ์„œ๋ฒ„ (์‚ฌ์šฉ์ž์˜ ๋ชฉ์ ์— ๋”ฐ๋ผ 9๊ฐœ์˜ Methods๋ฅผ ์‚ฌ์šฉ)

- Respose Message : ์›น ํด๋ผ์ด์–ธํŠธ < ์›น ์„œ๋ฒ„

- Message ๊ตฌ์„ฑ ํ˜•ํƒœ : Request/Response Line + Header + Blank Line + Body

 

 

1. Request/Response Line 

- Request : Request Method + Request URI + HTTP Version

- Response : HTTP Version + Response Code + Response Message

 

2. Header 

- Request : Host, Accept, Accept-Language, Accept-Encoding, User-Agent, Content-Length ๋“ฑ

- Response : Date, Server, Lsat-Modified, ETag, Accept-Range, Content-Length, Connection, Content-Type ๋“ฑ

 

3. Blank Line 

- ์š”์ฒญ์— ๋Œ€ํ•œ ๋ชจ๋“  ๋ฉ”ํƒ€ ์ •๋ณด๊ฐ€ ์ „์†ก๋˜์—ˆ์Œ ํ™•์ธ

 

4. Body

- Request : ์š”์ฒญ ์ •๋ณด(POST, PUT์—์„œ ๋งŽ์ด ์‚ฌ์šฉ)

- Response : ์‘๋‹ต ์ •๋ณด

 


- Method : GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH

- ๋ณด์•ˆ ๋ฌธ์ œ๋กœ ์ผ๋ฐ˜์ ์œผ๋กœ ์ผ๋ฐ˜์ ์œผ๋กœ ์›น ์„œ๋ฒ„์—์„œ GET, POST, OPTION๊นŒ์ง€๋งŒ ํ—ˆ์šฉ

 

 

1. GET : ์„œ๋ฒ„์ธก์— ์ •๋ณด ์š”์ฒญ(SELECT)

 

2. HEAD : ์„œ๋ฒ„์ธก์— HTTP Header ์ •๋ณด ์š”์ฒญ

 

3. POST : ์„œ๋ฒ„์ธก์— ์ •๋ณด๋ฅผ ์ƒ์„ฑํ•˜์—ฌ ์ „๋‹ฌ(INSERT)

 

4. PUT : ์„œ๋ฒ„์ธก์— ์ •๋ณด๋ฅผ ์—…๋ฐ์ดํŠธํ•˜์—ฌ ์ „๋‹ฌ(์ „์ฒด ๊ฐฑ์‹ , UPDATE)

 

5. DELETE : ์„œ๋ฒ„์ธก์— ์ •๋ณด ์‚ญ์ œ ์š”์ฒญ(DELETE)

 

6. CONNECT : ์„œ๋ฒ„์ธก์—์„œ Proxy ์š”์ฒญ์‹œ ์‘๋‹ต

 

7. OPTIONS : ์„œ๋ฒ„์ธก์—์„œ ์ œ๊ณตํ•˜๋Š” Method ํ™•์ธ ์š”์ฒญ

 

8. TRACE : ๊ฒฝ๋กœ ํ™•์ธ ์š”์ฒญ

 

9. PATCH : ์„œ๋ฒ„์ธก์— ์ •๋ณด๋ฅผ ์—…๋ฐ์ดํŠธํ•˜์—ฌ ์ „๋‹ฌ(์ผ๋ถ€ ๊ฐฑ์‹ )

 

* ์ฐธ๊ณ  : https://www.ntu.edu.sg/home/ehchua/programming/webprogramming/HTTP_Basics.html

 

In Introduction to HTTP Basics

HTTP (HyperText Transfer Protocol) Basics Introduction The WEB Internet (or The Web) is a massive distributed client/server information system as depicted in the following diagram. Many applications are running concurrently over the Web, such as web browsi

www.ntu.edu.sg

 

'Web(HTTPS)' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

HTTP Header  (0) 2020.03.22
HTTP Response Code  (0) 2020.03.22
html Tag  (0) 2020.03.22
Web Server๊ณผ WAS, Apache์™€ Tomcat  (0) 2020.02.19
Web Site์™€ Web Browser  (0) 2019.10.22