Web(HTTPS)

    HTTP/2์™€ HTTP/3

    1. HTTP HTTP ๋ฐœ์ „ ๊ณผ์ • - HTTP/0.9(1991๋…„) โ–ถ๏ธ HTTP/1(1996๋…„) โ–ถ๏ธ HTTP/1.1(1997๋…„) โ–ถ๏ธ HTTP/2(2015๋…„) โ–ถ๏ธ HTTP/3(2020๋…„) HTTP/0.9(1991๋…„) - ์ตœ์ดˆ ์ƒ์„ฑ ์‹œ ๋ฒ„์ „์ด ์—†์—ˆ์œผ๋‚˜ HTTP/1์ด ์ƒ๊ธฐ๋ฉด์„œ ๊ตฌ๋ถ„ํ•˜๊ธฐ ์œ„ํ•˜์—ฌ HTTP 0.9๋กœ ๋ถˆ๋ฆฌ๊ธฐ ์‹œ์ž‘ - ๋‹จ์ˆœ HTML๋งŒ ์ „์†ก ๊ฐ€๋Šฅ - GET ๋ฉ”์„œ๋“œ๋งŒ ๊ฐ€๋Šฅ HTTP/1(1996๋…„) - ํ—ค๋” ๋“ฑ์žฅ - ์„œ๋ฒ„ ์ƒํƒœ ํ™•์ธ ๊ฐ€๋Šฅ - HTML ์™ธ ์ปจํ…์ธ  ํŒŒ์ผ ์ „์†ก ๊ฐ€๋Šฅ - POST, PUT ๋ฉ”์„œ๋“œ ์ถ”๊ฐ€ HTTP/1.1(1997๋…„) - ํ‘œ์ค€ ๋ชจ๋ธ - Keep Alive ๊ธฐ๋Šฅ ์ถ”๊ฐ€ - ์ง€์† ์ปค๋„ฅ์…˜ ๊ธฐ๋Šฅ์œผ๋กœ TCP Connection ์žฌํ™œ์šฉ - ํŒŒ์ดํ”„๋ผ์ด๋‹ ๊ธฐ๋Šฅ ์ถ”๊ฐ€ - OPTIONS, GET, HE..

    HTTPS ํŒจํ‚ท ๋ถ„์„(TLS 1.2์™€ TLS 1.3)

    1. TLS 1.2 โ‘  DNS๋ฅผ ํ†ตํ•˜์—ฌ URL์œผ๋กœ IP ํ™•์ธ โ‘ก TCP Handshaking(1 Round Trip Time) - 3 Way Hanshaking https://eunhyee.tistory.com/96?category=937476 TCP์™€ UDP 1. TCP 3 way handshaking(์‹œ์ž‘) SYN - Client์—์„œ ์„ธ์…˜์„ ๋งบ๊ธฐ ์œ„ํ•˜์—ฌ SYN ์ „์†ก - Server๋Š” SYN์„ ๋ฐ›๊ณ  LITSEN > SYN_RCV ์ƒํƒœ ๋ณ€๊ฒฝ SYN+ACK - Sever๋Š” SYN์„ ํ™•์ธํ•˜๊ณ  Client์— SYN+ACK ์ „์†ก - Client๋Š” SYN+AC.. eunhyee.tistory.com โ‘ข TLS Handshaking(2 Round Trip Time) Client Hello : ํด๋ผ์ด์–ธํŠธ์ธก์—์„œ ์ƒ์„ฑํ•œ..

    HTTP and TLS(SSL)

    1. HTTP vs HTTPS - HTTP(Hypertext Transfer Protocol) : ์ „์†ก์ค‘ ์•”ํ˜ธํ™” X, 80 Port - HTTPS(HTTP Secure) : ์ „์†ก์ค‘ ์•”ํ˜ธํ™” O, 443 Port - ํ•ด์ปค๊ฐ€ HTTP ํŒจํ‚ท์„ ๊ฐˆ์ทจํ•˜๊ฒŒ ๋  ๊ฒฝ์šฐ ํ‰๋ฌธ์˜ ์ •๋ณด๋“ค์ด ๋ณด์ด์ง€๋งŒ HTTPS ํŒจํ‚ท์€ ์•”ํ˜ธํ™”๋˜์–ด์„œ ๋ณด์ด๊ธฐ ๋•Œ๋ฌธ์— ๋ณด์•ˆ ํ–ฅ์ƒ(๋กœ๊ทธ์ธ ํŽ˜์ด์ง€๊ฐ€ ๋งŒ์•ฝ HTTP๋ผ๋ฉด์€ ๋‚˜์˜ ๋กœ๊ทธ์ธ ์ •๋ณด๊ฐ€ ๋‹ค ๋ณด์ด๊ฒŒ ๋œ๋‹ค๋Š”...?! ํ˜„์žฌ๋Š” ์ค‘์š” ํŽ˜์ด์ง€ ์˜ˆ๋ฅผ ๋“ค์–ด ๋กœ๊ทธ์ธ, ๊ฒฐ์ œ ๊ด€๋ จ ํŽ˜์ด์ง€๋Š” ๋ฌด์กฐ๊ฑด HTTPS๋ฅผ ์‚ฌ์šฉ) Handshake ๋Œ€๋ถ€๋ถ„์˜ ๋ฉ”์„ธ์ง€๋ฅผ ์ฃผ๊ณ  ๋ฐ›๋Š” ์—ญํ• ์„ ํ•˜๋ฉฐ ์•”ํ˜ธํ™” ์•Œ๊ณ ๋ฆฌ์ฆ˜ ๊ฒฐ์ •, ํ‚ค ์ „๋‹ฌ, ์ธ์ฆ ๋ฉ”์„ธ์ง€ ์ „๋‹ฌ์„ ๋‹ด๋‹น Change Cipher Spec SSL ์•”ํ˜ธํ™” ํ†ต์‹  ์‹œ ์‚ฌ์šฉํ•  ์•”ํ˜ธํ™” ์•Œ๊ณ ๋ฆฌ์ฆ˜ ์„ค์ • ๊ทœ์•ฝ์ด..

    URI, URL, URN

    1. URI Uniform Resource Identifier ํ†ตํ•ฉ ์ž์› ์‹๋ณ„์ž๋กœ URL๊ณผ URN ํ˜•ํƒœ๊ฐ€ ์žˆ์Œ 2. URL Uniform Resource Locator ์›น ์„œ๋ฒ„์— ํ•„์š”ํ•œ ๋ฆฌ์†Œ์Šค์˜ ์œ„์น˜๋ฅผ ๋‚˜ํƒ€๋ƒ„ 3. URN Uniform Resource Name ์›น ์„œ๋ฒ„์— ํ•„์š”ํ•œ ๋ฆฌ์†Œ์Šค์˜ ์ด๋ฆ„์„ ๋‚˜ํƒ€๋ƒ„ 4. ํ‘œ๊ธฐ ๋ฐฉ๋ฒ• Protocol : ํ†ต์‹  ํ”„๋กœํ† ์ฝœ Subdomain(Host) : ์„œ๋ฒ„ ์ด๋ฆ„ Domain Name : ๋„๋ฉ”์ธ ๋„ค์ž„ TLD : ํƒ‘ ๋„๋ฉ”์ธ ๋„ค์ž„ Port : ์—ฐ๊ฒฐ ํฌํŠธ Path : ํŒŒ์ผ ๊ฒฝ๋กœ File Name : ํŒŒ์ผ ์ด๋ฆ„ Parameters(Query) : Request GET ์ •๋ณด

    HTTP Method(GET/POST)

    1. GET ์„œ๋ฒ„์ธก์— ์ •๋ณด ์š”์ฒญ ์š”์ฒญํ•˜๋Š” data๊ฐ€ url ๋’ค์— ๋ถ™์Œ data๋ฅผ ํŒŒ๋ผ๋ฏธํ„ฐ๋ผ๊ณ  ํ•˜์—ฌ url ๋’ค '?', '&'๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋‚˜ํƒ€๋ƒ„ data์— ์ œํ•œ์ด ์žˆ์Œ ์ง€์›ํ•˜์ง€ ์•Š๋Š” ์–ธ์–ด๋Š” url encoding์„ ๋”ฐ๋ผ์•ผ ํ•จ ์ƒ๋Œ€์ ์œผ๋กœ ๋น ๋ฆ„ GET์ด ๋™์ž‘ํ•จ์œผ๋กœ์จ ์›น ์„œ๋ฒ„์—์„œ ๋‹จ์ˆœ data๋ฅผ ๊ฐ€์ง€๊ณ  ์˜ด ์บ์‹ฑ ๊ฐ€๋Šฅ ex) ๊ฒ€์ƒ‰์‹œ https://search.naver.com/search.naver?sm=top_hty&fbm=1&ie=utf8&query=get+post+%EC%B0%A8%EC%9D%B4 > ๋„ค์ด๋ฒ„์—์„œ 'get post ์ฐจ์ด'๋ฅผ ๊ฒ€์ƒ‰ํ•ด url์ด ๋ฐ”๋€œ 2. POST ์„œ๋ฒ„์ธก์— ์ •๋ณด๋ฅผ ์ƒ์„ฑํ•˜์—ฌ ์ „๋‹ฌ ์š”์ฒญํ•˜๋Š” data๊ฐ€ body์— ํฌํ•จ data์— ์ œํ•œ์ด ์—†์Œ message encoding์„ ๋”ฐ๋ผ์•ผ ํ•จ ti..

    HTTP Header

    1. ๊ณตํ†ต Data : HTTP Message๊ฐ€ ๋งŒ๋“ค์–ด์ง„ ์‹œ๊ฐ„ Pragma : ์บ์‹œ ์ œ์–ด(HTTP/1.0) Cache-Control : ์ฃผ๋กœ Response์—์„œ ์‚ฌ์šฉ๋˜๋ฉฐ ์บ์‹œ ์ œ์–ด(HTTP/1.1) - no-store : ์•„๋ฌด๊ฒƒ๋„ ์บ์‹œํ•˜์ง€ ์•Š์Œ - no-cache : ๋ชจ๋“  ์บ์‹œ๋ฅผ ์“ฐ๊ธฐ ์ „์— ์„œ๋ฒ„์— ํ•ด๋‹น ์บ์‹œ๋ฅผ ์‚ฌ์šฉํ•ด๋„ ๋˜๋Š”์ง€ ํ™•์ธ - no-transform : ์‘๋‹ต์— ๋Œ€ํ•œ ๋ณ€ํ˜„์ด๋‚˜ ๋ณ€ํ™˜์„ ํ—ˆ์šฉํ•˜์ง€ ์•Š์Œ - only-if-cached : ๋ฌด์กฐ๊ฑด ์บ์‹œ๋ฅผ ์‚ฌ์šฉ - must-revalidate : ๋งŒ๋ฃŒ๋œ ์บ์‹œ๋งŒ ์„œ๋ฒ„์—์„œ ํ™•์ธ์„ ๋ฐ›๋„๋ก ํ•จ - proxy-revalidate : must-revalidate์™€ ๋™์ผํ•˜์ง€๋งŒ ๊ณต์œ  ์บ์‹œ์—๋งŒ ์ ์šฉ - public : ๊ณต์œ  ์บ์‹œ(๋˜๋Š” ์ค‘๊ฐœ ์„œ๋ฒ„)์— ์ €์žฅํ•ด๋„ ๋œ๋‹ค๋Š” ๊ฒƒ์„ ์˜๋ฏธ ..

    HTTP Response Code

    1. 1xx(์กฐ๊ฑด๋ถ€ ์‘๋‹ต, Request ์ฒ˜๋ฆฌ ์ค‘) 100(Continue, ๊ณ„์†): ์š”์ฒญ์ž๋Š” ์š”์ฒญ์„ ๊ณ„์†ํ•ด์•ผ ํ•œ๋‹ค. ์„œ๋ฒ„๋Š” ์ด ์ฝ”๋“œ๋ฅผ ์ œ๊ณตํ•˜์—ฌ ์š”์ฒญ์˜ ์ฒซ ๋ฒˆ์งธ ๋ถ€๋ถ„์„ ๋ฐ›์•˜์œผ๋ฉฐ ๋‚˜๋จธ์ง€๋ฅผ ๊ธฐ๋‹ค๋ฆฌ๊ณ  ์žˆ์Œ์„ ๋‚˜ํƒ€๋‚ธ๋‹ค. 101(Swithching Protocols, ํ”„๋กœํ† ์ฝœ ์ „ํ™˜): ์š”์ฒญ์ž๊ฐ€ ์„œ๋ฒ„์— ํ”„๋กœํ† ์ฝœ ์ „ํ™˜์„ ์š”์ฒญํ–ˆ์œผ๋ฉฐ ์„œ๋ฒ„๋Š” ์ด๋ฅผ ์Šน์ธํ•˜๋Š” ์ค‘์ด๋‹ค. 102(Processing, ์ฒ˜๋ฆฌ, RFC 2518) 2. 2xx(์„ฑ๊ณต, Request ์ฒ˜๋ฆฌ ์™„๋ฃŒ) 200(OK, ์„ฑ๊ณต): ์„œ๋ฒ„๊ฐ€ ์š”์ฒญ์„ ์ œ๋Œ€๋กœ ์ฒ˜๋ฆฌํ–ˆ๋‹ค๋Š” ๋œป์ด๋‹ค. ์ด๋Š” ์ฃผ๋กœ ์„œ๋ฒ„๊ฐ€ ์š”์ฒญํ•œ ํŽ˜์ด์ง€๋ฅผ ์ œ๊ณตํ–ˆ๋‹ค๋Š” ์˜๋ฏธ๋กœ ์“ฐ์ธ๋‹ค. 201(Created, ์ž‘์„ฑ๋จ): ์„ฑ๊ณต์ ์œผ๋กœ ์š”์ฒญ๋˜์—ˆ์œผ๋ฉฐ ์„œ๋ฒ„๊ฐ€ ์ƒˆ ๋ฆฌ์†Œ์Šค๋ฅผ ์ž‘์„ฑํ–ˆ๋‹ค. 202(Accepted, ํ—ˆ์šฉ๋จ): ์„œ๋ฒ„๊ฐ€ ์š”์ฒญ์„..

    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, Acc..

    html Tag

    web์—์„œ ๊ฐ€์žฅ ๋งŽ์ด ์‚ฌ์šฉํ•˜๋Š” html Tag๋ฅผ ์ˆœ์„œ๋Œ€๋กœ ํ™•์ธ ๊ฐ€๋Šฅํ•œ ์‚ฌ์ดํŠธ : https://www.advancedwebranking.com/html/ The average web page from top twenty Google results Apparently, an average web page uses twenty-eight different element types: The twenty-eight elements used on most pages, ordered by appearance frequency: www.advancedwebranking.com html Tag ์ •์˜๋ฅผ ์นดํ…Œ๊ณ ๋ฆฌ, ์•ŒํŒŒ๋ฒณ ์ˆœ์„œ๋Œ€๋กœ ํ™•์ธ ๊ฐ€๋Šฅํ•œ ์‚ฌ์ดํŠธ : https://www.w3schools.com/tags/default..

    Web Server๊ณผ WAS, Apache์™€ Tomcat

    Web Server ์ •์ ์ธ ๋ฐ์ดํ„ฐ๋ฅผ ํ‘œํ˜„ HTML, JPG, GIF ๋“ฑ์„ HTTP(80) ํ”„๋กœํ† ์ฝœ์„ ํ†ตํ•ด ์›น ๋ธŒ๋ผ์šฐ์ €๋กœ ์ œ๊ณต ์ข…๋ฅ˜ : Apache, ๋งˆ์ดํฌ๋กœ์†Œํ”„ํŠธ IIS, Tmax WebtoB, nginx ๋“ฑ WAS ๋™์ ์ธ ๋ฐ์ดํ„ฐ๋ฅผ ํ‘œํ˜„ JSP, PHP, ASP ๋“ฑ์„ 8080 ํ”„๋กœํ† ์ฝœ์„ ํ†ตํ•ด ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜์œผ๋กœ ์ œ๊ณต Web Server ๋ถ€ํ•˜๋ฅผ ๋ถ„์‚ฐํ•˜๊ธฐ ์œ„ํ•จ Web Server์™€ Web Container๋กœ ๊ตฌ์„ฑ ์ข…๋ฅ˜ : Tomcat, BEA, Web Logic, IBM Web, Sphere, Tmax Jeus ๋“ฑ Web Server์™€ WAS๋กœ ๋‚˜๋ˆ ์„œ ์“ฐ๋Š” ์ด์œ  ๋‹จ์ˆœ HTML, ์ด๋ฏธ์ง€์™€ ๊ฐ™์€ ๋ฐ์ดํ„ฐ๋Š” Web Server๋ฅผ ํ†ตํ•ด ์•ˆ์ •์ ์œผ๋กœ ๋น ๋ฅด๊ฒŒ ์ œ๊ณต Apache Web Server ๋ฐ์ดํ„ฐ๋ฅผ ๋จผ์ € ๋ฐ›์•„ ์ •์ ์ธ ๋ฐ..

    Web Site์™€ Web Browser

    WWW๋ž€? ๋”๋ธ”์œ *3 ํ˜น์€ ๋”ฐ๋”ฐ๋”ฐ๋ผ๊ณ  ๋ถˆ๋ฆฌ๋Š” WWW๋Š” Word Wide Web์˜ ์ค„์ž„๋ง์ž…๋‹ˆ๋‹ค. ์ธํ„ฐ๋„ท์—์„œ ์‚ฌ์šฉ๋˜๋Š” ํ‘œ์ค€ ๋ฌธ์„œ ์‹œ์Šคํ…œ์ด๊ธฐ๋„ ํ•˜๋ฉฐ ๊ฐ€์žฅ ํฐ ํŠน์ง•์€ HTML ์–ธ์–ด๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. ํ•ด๋‹น ๋ฌธ์„œ๋“ค์€ ๊ฐ๊ฐ์˜ ์›น ์„œ๋ฒ„์— ์ €์žฅ๋˜์–ด ์žˆ์œผ๋ฉฐ User๋Š” ์„ ํƒํ•œ Web Browser๋ฅผ ํ†ตํ•ด HTML ์–ธ์–ด๋กœ ์ž‘์„ฑ๋œ ๋ฌธ์„œ๋ฅผ Web Page๋กœ ์ฝ์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. "์ธํ„ฐ๋„ท์„ ํ•œ๋‹ค = Web Browser(IE, Chorme ๋“ฑ)๋ฅผ ์—ฐ๋‹ค"๊ฐ€ ๋  ์ •๋„๋กœ ์›ฌ๋งŒํ•œ ์ธํ„ฐ๋„ท์˜ ๋ชจ๋‘ WWW๋กœ ํ†ตํ•œ๋‹ค๊ณ  ๋ด๋„ ๋˜๊ฒ ์ฃ ? Web Site๋ž€? ํŠน์ • Web Page๋“ค์ด ๋ชจ์—ฌ Web Site ๋ฉ๋‹ˆ๋‹ค. ๊ฐ„๋‹จํ•˜๊ฒŒ ๋„ค์ด๋ฒ„ ๋ธ”๋กœ๊ทธ, ๋„ค์ด๋ฒ„ ์‡ผํ•‘, ๋„ค์ด๋ฒ„ ์›นํˆฐ ๋“ฑ์˜ Web Page๋“ค์ด ๋ชจ์—ฌ ํ•˜๋‚˜์˜ ๋„ค์ด๋ฒ„ Web Site๋ฅผ ๋งŒ๋“ ๋‹ค๊ณ  ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ..