Skip to main content

One post tagged with "cs"

View All Tags

200711

HTTP#

HyperText Transfer Protocol


2021-04-05-200711-image-0


2021-04-05-200711-image-1

ํด๋ผ์ด์–ธํŠธ๋Š” ์„œ๋ฒ„์—๊ฒŒ HTML ํŒŒ์ผ์„ ์š”์ฒญ(Request), ์„œ๋ฒ„๋Š” ์‘๋‹ต(Response)

Request Message#

  • GET /1.html HTTP/1.1 => ์š”์ฒญํ–‰

  • Host: localhost:8080 => ๋„คํŠธ์›Œํฌ์˜ ์ปดํ“จํ„ฐ ์‹๋ณ„ํ•˜๋Š” ์ด๋ฆ„

  • User-Agent : ... => ์œ ์ € ์ปดํ“จํ„ฐ, ์›น๋ธŒ๋ผ์šฐ์ € ์ •๋ณด

  • Accept-Encoding : gzip, deflate, br => ๋ฐ์ดํ„ฐ ์–‘์ด ๋งŽ์œผ๋ฉด ์••์ถ•ํ•ด์„œ ์ „์†กํ•˜๋Š”๋ฐ, ์–ด๋–ค ์••์ถ•๋ฐฉ์‹์„ ์ง€์›ํ•˜๋Š”์ง€ ์„ค๋ช…

  • If-Modified-Since: => ๋งˆ์ง€๋ง‰์œผ๋กœ ํŽ˜์ด์ง€๋ฅผ ๋‹ค์šด๋ฐ›์€๊ฒŒ ์–ธ์ œ์ธ์ง€ ํ™•์ธํ•˜์—ฌ ๋‹ค์‹œ ๋‹ค์šด๋ฐ›์„์ง€ ๊ฒฐ์ •

  • <blank line> => ๋ธ”๋žญํฌ๋กœ ํ—ค๋”์™€ ๋ฐ”๋”” ๊ตฌ๋ถ„

  • Request Message Body

Response Message#

2021-04-05-200711-image-2

  • status : ์„œ๋ฒ„์˜ ์‘๋‹ต ๊ฒฐ๊ณผ๋ฅผ ์•Œ๋ ค์คŒ.


๊ทธ ์™ธ#

  • HTTPS, SSL

  • Cache

  • cookie

  • web storage

  • proxy