java

jsp ๊ธฐ์ดˆ

dev_summer 2020. 10. 30. 16:56

 

 

1. HTTP header๋ž€?

๋ฐ์ดํ„ฐ์˜ ๋ชฉ์ ์ง€, ๋ฐ์ดํ„ฐ์˜ ์ •๋ณด๋ฅผ ๋‹ด๊ณ  ์žˆ๋‹ค.

์›น์„œ๋ฒ„์™€ ํด๋ผ์ด์–ธํŠธ๊ฐ€ ๋ฐ์ดํ„ฐ๋ฅผ ์ฃผ๊ณ  ๋ฐ›์„๋•Œ ์–ด๋–ค ํ˜•์‹์˜ ํŒŒ์ผ์ธ์ง€ ๊ธฐ๋ณธ์ ์ธ ์ •๋ณด๋ฅผ ๋‹ด๊ณ  ์žˆ๋‹ค.

ex) <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>

html์˜ ๊ธฐ๋ณธ์ •๋ณด๋ฅผ ๋‚˜ํƒ€๋‚ด๋ฉฐ ์ด ํŒŒ์ผ์€ utf-8๋กœ ์ฝ์–ด์•ผ ํ•œ๋‹ค๋Š” ๊ธฐ๋ณธ ์ •๋ณด๋ฅผ ์•Œ๋ ค์ฃผ๊ณ  ์žˆ๋‹ค.

 

2. HTTP content -type ์ด๋ž€?

- HTTPํŒŒ์ผ์„ ์ „์†กํ• ๋•Œ

3. MIME type ์ข…๋ฅ˜ (Multipurpose Internet Mail Extensions)

- ์—ฌ๋Ÿฌํ˜•ํƒœ์˜ ํŒŒ์ผ(๋ฐ”์ด๋„ˆ๋ฆฌํŒŒ์ผ(์Œ์•…,๋ฌด๋น„,์›Œ๋“œ ๋“ฑ))์„ ๋ณด๋‚ด๊ธฐ ์‹œ์ž‘ํ•˜๋ฉด์„œ ์ธ์ฝ”๋”ฉ๊ณผ ๋””์ฝ”๋”ฉ ํ•˜๋Š” ๊ณผ์ •์„ ๊ฑฐ์น˜๊ฒŒ ๋˜๋Š”๋ฐ ์ด๋•Œ ์–ด๋–คํ˜•์‹์œผ๋กœ ์ฃผ๊ณ  ๋ฐ›๋Š”์ง€๋ฅผ MIMEํƒ€์ž…์œผ๋กœ ๋ช…์‹œํ•ด๋†“์Œ.

 

 

 

 

4. ์•„ํŒŒ์น˜ / ํ†ฐ์บฃ

- ์•„ํŒŒ์น˜ : HTTP ์›น์„œ๋ฒ„๋กœ ํด๋ผ์ด์–ธํŠธ์˜ ์š”์ฒญ์„ ๊ธฐ๋‹ค๋ฆฌ๊ณ  ์š”์ฒญ์— ๋Œ€ํ•œ ๋ฐ์ดํ„ฐ๋ฅผ ๋งŒ๋“ค์–ด์„œ ์‘๋‹ตํ•˜๋Š” ์—ญํ• 

์ด๋•Œ ๋ฐ์ดํ„ฐ๋Š” ์ •์ ์ธ ๋ฐ์ดํ„ฐ(html, css,img ๋“ฑ)๋กœ ํ•œ์ • ๋œ๋‹ค.

- ํ†ฐ์บฃ : WAS(์›น์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„œ๋ฒ„), ์ปจํ…Œ์ด๋„ˆ, ์›น์ปจํ…Œ์ด๋„ˆ, ์„œ๋ธ”๋ฆฟ์ปจํ…Œ์ด๋„ˆ๋ผ๊ณ ๋„ ๋ถ€๋ฆ„

์›น์„œ๋ฒ„์™€ ์›น์ปจํ…Œ์ด๋„ˆ์˜ ๊ฒฐํ•ฉ์œผ๋กœ ๋‹ค์–‘ํ•œ ๊ธฐ๋Šฅ์„ ์ปจํ…Œ์ด๋„ˆ์— ๊ตฌํ˜„ํ•˜์—ฌ ๋‹ค์–‘ํ•œ ์—ญํ• ์„ ์ˆ˜ํ–‰ํ•จ

์˜ˆ

 

https://limmmee.tistory.com/4

 

์•„ํŒŒ์น˜์™€ ํ†ฐ์บฃ์˜ ์ฐจ์ด

๋ณดํ†ต ์šฐ๋ฆฌ๋Š” ์ปดํ“จํ„ฐ๋ฅผ ์‚ฌ์šฉํ•  ๋•Œ ์›น ํŽ˜์ด์ง€๋ฅผ ๋„์›Œ์„œ ์ •๋ณด๋ฅผ ๊ฒ€์ƒ‰ํ•˜๊ณ  ๋‹ค์–‘ํ•œ ์ฝ˜ํ…์ธ ๋ฅผ ์ฆ๊ธด๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด ๋‚ด๊ฐ€ ์œ ํˆฌ๋ธŒ์—์„œ ๋™์˜์ƒ์ด ๋ณด๊ณ  ์‹ถ๋‹ค๋ฉด, ์›น ๋ธŒ๋ผ์šฐ์ €(ํฌ๋กฌ, ํŒŒ์ด์–ดํญ์Šค, IE)์—์„œ ์œ ํˆฌ๋ธŒ์˜ URL(www.youtu..

limmmee.tistory.com

5. URL / URI

URL : ์ฟผ๋ฆฌ์ŠคํŠธ๋ง์œผ๋กœ ๋ทฐ์—์„œ ๋ทฐ๋กœ ์ด๋™ํ•˜๋Š” ๋ฐฉ์‹

URI : ์ปจํŠธ๋กค๋Ÿฌ๊ฐ€ ์กด์žฌํ•˜์—ฌ ์ปจํŠธ๋กค๋Ÿฌ๋ฅผ ํ†ตํ•ด ํŽ˜์ด์ง€ ์ด๋™์„ ํ•˜๋Š” ๋ฐฉ์‹

6. localhost:8000/

7. context/์„œ๋ธ”๋ฆฟ์ด๋ฆ„

โ€‹

 

 

์ฐธ๊ณ  :https://ha0programming.tistory.com/9

์ด๋Ÿฐ ์ž๋ฃŒ ์˜ฌ๋ฆฌ์‹œ๋Š” ๋ถ„๋“ค์€ ๋‹ค๋“ค ๋ณต ๋ฐ›์œผ์„ธ์š” ํ—คํ—น

 

Content-type์ด๋ž€?

์˜ค๋Š˜์€ jsp์—์„œ content-type์— ๋Œ€ํ•ด์„œ ๊ณต๋ถ€ํ•ด๋ณด๋ ค๊ณ  ํ•œ๋‹ค jsp๋ฅผ ํ•ญ์ƒ ๋‹ค๋ฃจ๋ฉด์„œ head์— ์žˆ๋Š” ๊ฒƒ์€ ๋ณต๋ถ™ํ•ด์„œ ๊ฐ€์ ธ๋‹ค ์“ฐ๊ณ  ์™œ ์“ฐ๋Š”์ง€ ๋ฌด์Šจ์˜๋ฏธ๋กœ ์“ฐ๋Š”์ง€ ํ•œ๋ฒˆ๋„ ์ƒ๊ฐํ•ด๋ณธ์ ๋„ ๊ณต๋ถ€ํ•ด๋ณธ์ ๋„ ์—†์—ˆ๋˜ ๊ฒƒ ๊ฐ™๋‹ค. jsp๋„ ๊ทธ..

ha0programming.tistory.com

https://kdevkr.github.io/archives/2018/understanding-http-content-types/

https://kdevkr.github.io/archives/2018/understanding-http-content-types/

https://server-talk.tistory.com/183

 

MIME์ด๋ž€ ๋ฌด์—‡์ธ๊ฐ€?

MIME์ด๋ž€ ๋ฌด์—‡์ธ๊ฐ€? MIME์ด๋ž€? Multipurpose Internet Mail Extensions์˜ ์•ฝ์ž๋กœ ๊ฐ„๋žตํžˆ ๋ง์”€์„ ๋“œ๋ฆฌ๋ฉด ํŒŒ์ผ ๋ณ€ํ™˜์„ ๋œปํ•œ๋‹ค๊ณ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. MIME๋Š” ์ด๋ฉ”์ผ๊ณผ ํ•จ๊ป˜ ๋™๋ด‰ํ•  ํŒŒ์ผ์„ ํ…์ŠคํŠธ ๋ฌธ์ž๋กœ ์ „ํ™˜ํ•ด์„œ ์ด๋ฉ”์ผ..

server-talk.tistory.com

 

 

application/javascript - ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ

application/xhtml+xml - XHTML

์˜ค๋””์˜ค

audio/mpeg - MPEG, MP3 ์˜ค๋””์˜ค

audio/x-ms-wma - Windows Media Audio ํ˜•์‹

audio/vnd.rn-realaudio - RealAudio ์˜ค๋””์˜ค ํ˜•์‹

์ด๋ฏธ์ง€

image/gif - GIF ์ด๋ฏธ์ง€

image/jpeg - JPEG ์ด๋ฏธ์ง€

image/png - Portable Network Graphics ์ด๋ฏธ์ง€

image/svg+xml - SVG ๋ฒกํ„ฐ ๊ทธ๋ž˜ํ”ฝ

๋ฉ”์‹œ์ง€

message/http - ๋ฉ”์‹œ์ง€

ํ…์ŠคํŠธ

text/css - ์Šคํƒ€์ผ ์‹œํŠธ

text/csv - ์ฝค๋งˆ๋กœ ๊ตฌ๋ถ„๋œ ๊ฐ’๋“ค

text/html - HTML

text/javascript - ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ(์ด ํ˜•์‹์€ ๋”๋Š” ์‚ฌ์šฉ์„ ๊ถŒํ•˜์ง€ ์•Š์œผ๋‚˜ HTML5์—์„œ๋Š” ์—ฌ์ „ํžˆ ํ—ˆ์šฉ๋œ๋‹ค. application/javascript์™€ ๋‹ฌ๋ฆฌ ํฌ๋กœ์Šค ๋ธŒ๋ผ์šฐ์ €๋ฅผ ์ง€์›ํ•œ๋‹ค.)

text/plain - ๊ธฐ๋ณธ ํ…์ŠคํŠธ

text/xml - XML ํ˜•์‹

๋น„๋””์˜ค

video/mpeg - MPEG-1 ๋น„๋””์˜ค

video/mp4 - MP4 ๋น„๋””์˜ค

video/quicktime - ์• ํ”Œ ํ€ตํƒ€์ž„ ๋น„๋””์˜ค

video/x-ms-wmv - Windows Media Video ํ˜•์‹

 

 

 

 

'java' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

jsp- request๊ฐ์ฒด  (0) 2020.10.30
jsp ๋‚ด์žฅ๊ฐ์ฒด ์ด์šฉํ•˜๊ธฐ  (0) 2020.10.30
JSP ๊ธฐ๋ณธ๊ตฌ์กฐ  (0) 2020.10.30
jsp์™€ ์„œ๋ธ”๋ฆฟ๋ฐฉ์‹  (0) 2020.10.28
์ฟผ๋ฆฌ์ŠคํŠธ๋ง  (0) 2020.10.28