less than 1 minute read

Web Basic

HTTP

Hypertext Transfer Protocol

์š”์ฒญ๊ณผ ์‘๋‹ต์„ ๊ตํ™˜ํ•˜๊ธฐ ์œ„ํ•œ ์›น ์„œ๋ฒ„์™€ ํด๋ผ์ด์–ธํŠธ์˜ ๋ช…์„ธ

HTML

Hypertext Markup Language

๊ฒฐ๊ณผ์— ๋Œ€ํ•œ ํ‘œํ˜„ ํ˜•์‹

URL

Uniform Resource Locator

๊ณ ์œ ์˜ ํ•ด๋‹น ์„œ๋ฒ„์™€ ์ž์›์„ ๋‚˜ํƒ€๋‚ด๋Š” ๋ฐฉ๋ฒ•


Web client, Web server

  • Client requests, open TCP/IP connection, send URL and etc. through HTTP. And get response.

Something else

  • caching
  • session
  • authentication
  • cookie

์‘๋‹ต ์ฝ”๋“œ

  1. 1xx(์กฐ๊ฑด๋ถ€ ์‘๋‹ตinformation) ์„œ๋ฒ„๋Š” ์š”์ฒญ์„ ๋ฐ›์•˜์ง€๋งŒ, ํด๋ผ์ด์–ธํŠธ์— ๋Œ€ํ•œ ๋ช‡ ๊ฐ€์ง€ ์ถ”๊ฐ€ ์ •๋ณด๊ฐ€ ํ•„์š”ํ•˜๋‹ค.
  2. 2xx(์„ฑ๊ณตsuccess) ์„ฑ๊ณต์ ์œผ๋กœ ์ฒ˜๋ฆฌ๋˜์—ˆ๋‹ค. 200 ์ด์™ธ์˜ ๋ชจ๋“  ์„ฑ๊ณต ์ฝ”๋“œ๋Š” ์ถ”๊ฐ€์‚ฌํ•ญ์„ ์ „๋‹ฌํ•œ๋‹ค.
  3. 3xx(๋ฆฌ๋‹ค์ด๋ ‰์…˜redirection) ๋ฆฌ์†Œ์Šค๊ฐ€ ์ด์ „๋˜์–ด ํด๋ผ์ด์–ธํŠธ์— ์ƒˆ๋กœ์šด URL์„ ์‘๋‹ตํ•ด์ค€๋‹ค.
  4. 4xx(ํด๋ผ์ด์–ธํŠธ ์—๋Ÿฌclient error) ์ž์ฃผ ๋ฐœ์ƒํ•˜๋Š” 404(์ฐพ์„ ์ˆ˜ ์—†์Œnot found)๋Š” ํด๋ผ์ด์–ธํŠธ ์ธก์— ๋ฌธ์ œ๊ฐ€ ์žˆ์Œ์„ ๋‚˜ํƒ€๋‚ธ๋‹ค. 418(๋‚˜๋Š” ์ฐป์ฃผ์ „์ž์•ผIโ€™m a teapot)๊ณผ ๊ฐ™์€ ๋งŒ์šฐ์ ˆ ๋†๋‹ด๋„ ์žˆ๋‹ค.
  5. 5xx(์„œ๋ฒ„ ์—๋Ÿฌserver error) ์›น ์„œ๋ฒ„์™€ ๋ฐฑ์—”๋“œ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ์„œ๋ฒ„๊ฐ€ ์—ฐ๊ฒฐ๋˜์–ด ์žˆ์ง€ ์•Š๋‹ค๋ฉด 502(๋ถˆ๋Ÿ‰ ๊ฒŒ์ดํŠธ์›จ์ดbad gateway)๋ฅผ ๋ณผ ๊ฒƒ์ด๋‹ค.

####