“URI는 로케이터(Locator), 이름(name) 또는 둘 다 추가로 분류될 수 있다.”
scheme://[userinfo@]host[:port][/path][?query][#fragment]
프로토콜(https)
호스트명(www.google.com)
포트 번호(443)
패스(/search)
쿼리 파라미터(q=hello&hl=ko)
scheme://[userinfo@]host[:port][/path][?query][#fragment]
https://www.google.com:443/search?q=hello&hl=ko
주로 프로토콜 사용
프로토콜이란? 어떤 방식으로 자원에 접근할때 필요한 약속, 규칙
scheme://[userinfo@]host[:port][/path][?query][#fragment]
URL에 사용자정보를 포함해서 인증
거의 사용하지 않음
scheme://[userinfo@]host[:port][/path][?query][#fragment]
호스트명
도메인명 또는 IP 주소
scheme://[userinfo@]host[:port][/path][?query][#fragment]
접속 포트
일반적으로 생략, 생략시 http는 80, https는443
scheme://[userinfo@]host[:port][/path][?query][#fragment]
리소스 경로, 계층적구조
scheme://[userinfo@]host[:port][/path][?query][#fragment]
key=value 형태
?로 시작, &로 추가 가능
query parameter, query string 등으로 불림
웹서버에 제공하는 파라미터, 문자 형태
scheme://[userinfo@]host[:port][/path][?query][#fragment]
html 내부 북마크 등에 사용
서버에 전송하는 정보 x