๐Ÿฟ HTTP ์™„๋ฒฝ ๊ฐ€์ด๋“œ - 2์žฅ URL๊ณผ ๋ฆฌ์†Œ์Šค

modoleeยท2020๋…„ 8์›” 24์ผ
1

HTTP ์™„๋ฒฝ ๊ฐ€์ด๋“œ

๋ชฉ๋ก ๋ณด๊ธฐ
2/3
post-thumbnail

URL ๋ฌธ๋ฒ•

<scheme>://<username>:<password>@<host>:<port>/<path>;<parameter>?<query>#<fragment>

Username, Password

  • ์‚ฌ์šฉ์ž ์ด๋ฆ„, ๋น„๋ฐ€๋ฒˆํ˜ธ ์—†์ด FTP URL ์ ‘๊ทผ ์‹œ
    • ๊ธฐ๋ณธ ์‚ฌ์šฉ์ž ์ด๋ฆ„ : anonymous
    • ๋น„๋ฐ€๋ฒˆํ˜ธ : ๋ธŒ๋ผ์šฐ์ €์˜ ๊ธฐ๋ณธ ๊ฐ’ ์‚ฌ์šฉ
      • IE : IEUser
      • Chrome : chrome@example.com

Parameter

  • ;(์„ธ๋ฏธ์ฝœ๋ก )์œผ๋กœ ๊ตฌ๋ถ„ํ•˜๋ฉฐ key=value ๊ฐ’์œผ๋กœ ์ด๋ฃจ์–ด์ง

  • ๋งŽ์ด ์ ‘ํ•ด ๋ณด์ง€ ๋ชปํ•œ ํ˜•ํƒœ

  • ์‚ฌ์šฉ์€ ํ•˜์ง€๋งŒ ๋งŽ์ด ์‚ฌ์šฉํ•˜๋Š” ํ˜•ํƒœ๋Š” ์•„๋‹Œ ๋“ฏ ํ•จ

  • ์ฐธ๊ณ  : https://www.oreilly.com/library/view/restful-web-services/9780596809140/ch04.html

Comma and semicolon

Use the comma (,) and semi-colon (;) characters to indicate nonhierarchical portions of the URI. The semicolon convention is used to identify matrix parameters:

http://www.example.org/co-ordinates;w=39.001409,z=-84.578201
http://www.example.org/axis;x=0,y=9 

These characters are valid in the path and query portions of URIs, but not all code libraries recognize the comma and semicolon as separators and may require custom coding to extract these parameters.

Fragment

  • # ์œผ๋กœ ๊ตฌ๋ถ„ํ•ด์„œ ์‚ฌ์šฉ
  • ์„œ๋ฒ„์— ์ „๋‹ฌ ๋˜์ง€ ์•Š๊ณ , ํด๋ผ์ด์–ธํŠธ์—์„œ๋งŒ ์‚ฌ์šฉ
  • markdown์œผ๋กœ ์ž‘์„ฑ ๋œ ๊ธ€์˜ ์ œ๋ชฉ๋“ค์— ์ž๋™์œผ๋กœ # ๋งํฌ๊ฐ€ ์ƒ๊ฒจ ํ™œ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ๊ฒƒ์„ ์ƒ๊ฐํ•˜๋ฉด ์ดํ•ดํ•˜๊ธฐ ์‰ฌ์›€

์•ˆ์ „ํ•˜์ง€ ์•Š์€ ๋ฌธ์ž

์ด์Šค์ผ€์ดํ”„ ๋ฌธ์ž

  • ์•ˆ์ „ํ•˜์ง€ ์•Š์€ ๋ฌธ์ž๋ฅผ ํ‘œํ˜„ํ•˜๋Š” ์ธ์ฝ”๋”ฉ ๋ฐฉ์‹
  • % + ASCII ์ฝ”๋“œ๋กœ ํ‘œํ˜„๋˜๋Š” ๋‘ ์ž๋ฆฌ 16์ง„์ˆ˜ ์ˆซ์ž
  • ์˜ˆ์‹œ (https://www.w3schools.com/tags/ref_urlencode.ASP)
    • ~ : %7E
    • ๋นˆ ๋ฌธ์ž : %20
    • % : %25

๋ฌธ์ž ์ œํ•œ

  • ์˜ˆ์•ฝ์–ด ๋ฐ ๊ธˆ์ง€์–ด๊ฐ€ ์ •ํ•ด์ ธ ์žˆ๋Š”๋ฐ, ํ•ด๋‹น ๋ฌธ์ž๋“ค์„ ๋ณธ๋ž˜ ๋ชฉ์ ์ด ์•„๋‹Œ ๋‹ค๋ฅธ ์šฉ๋„๋กœ ์‚ฌ์šฉํ•  ๋•Œ์—๋Š” ๋ฐ˜๋“œ์‹œ ์ธ์ฝ”๋”ฉ์ด ํ•„์š”
  • ์˜ˆ์‹œ
%
/
.
..
#
?
;
:
$, +
@ & =
{}|\~[]`
<>"

๋ฏธ๋ž˜

  • ์ฑ…์ด 2002๋…„์— ๋‚˜์™€์„œ ์ด๋ฏธ ๋ฏธ๋ž˜์ด์ง€๋งŒ, ๊ทธ ๋‹น์‹œ์— ๊ธฐ๋Œ€ํ•˜๋˜ ์„œ๋น„์Šค๋“ค์€ ์‚ฌ์šฉ ๋˜์ง€ ์•Š๊ณ  ์žˆ์Œ
  • URN : ๊ฐ์ฒด๊ฐ€ ์˜ฎ๊ฒจ์ง€๋”๋ผ๋„ ํ•ญ์ƒ ๊ฐ์ฒด๋ฅผ ๊ฐ€๋ฆฌํ‚ฌ ์ˆ˜ ์žˆ๋Š” ์ด๋ฆ„์„ ์ œ๊ณต
  • PURL
    • ๋ฆฌ์†Œ์Šค์˜ ์‹ค์ œ URL ๋ชฉ๋ก์„ ๊ด€๋ฆฌํ•˜๊ณ  ์ถ”์ ํ•˜๋Š” ๋ฆฌ์†Œ์Šค ์œ„์น˜ ์ค‘๊ฐœ ์„œ๋ฒ„๋ฅผ ๋‘๊ณ , ํ•ด๋‹น ๋ฆฌ์†Œ์Šค๋ฅผ ์šฐํšŒ์ ์œผ๋กœ ์ œ๊ณต.
    • ํ™ˆํŽ˜์ด์ง€๋Š” ์กด์žฌ ํ•˜์ง€๋งŒ, ๊ธฐ๋Šฅ์ด ์ •์ƒ์ ์œผ๋กœ ๋™์ž‘ํ•˜์ง€ ์•Š์Œ
profile
๊ธฐ์ดˆ๊ฐ€ ํƒ„ํƒ„ํ•œ ๋ฐฑ์—”๋“œ ๊ฐœ๋ฐœ์ž๋ฅผ ๊ฟˆ๊ฟ‰๋‹ˆ๋‹ค.

0๊ฐœ์˜ ๋Œ“๊ธ€