목록URL (3)
어흥

//호출 URL https://www.naver.com:443 프로토콜: https URL: www.naver.com Port: 443 1. URL을 Parsing하여 HTTP Request Message를 만들어서 OS에 전송 요청한다. 2. HSTS 목록 조회 : HTTP를 허용하지 않고 HTTPS 사용하는 연결만 허용한다. HTTP요청이 왔다면, 응답 헤더에 "Strict Transport Security"라는 필드를 포함하여 응답하고 브라우저는 이후 응답할때 HTTPS를 통해서 응답. 또한, 브라우저의 HSTS 캐시에 해당 URL 저장. 이후, 브라우저에선 HSTS 목록을 통해 HTTPS로 보낼지 확인하며, HTTP로 왔다면 301,302 상태코드를 통해 Redirect하라고 응답 3. 도메인으로..
[URI 구성 요소] - Identifier: 식별자, 자원 식별자, id값 [URL 구성 요소] - 프로토콜: http, https, ftp 등 - 호스트네임: 도메인 or ip - URL Path: 호스트에서 클라이언트가 요청한 파일 디렉토리 - 쿼리: 추가적인 질문사항 [결과] String uri = request.getRequestURI(); String url = request.getRequestURL(); System.out.println("URI: "+uri);// /main/index.do System.out.println("URL: "+url);// http://localhost:8080/main/index.do [차이점] - URL은 호스트에서 클라이언트가 요청한 파일의 디렉토리를 나타..
//현재 URL: https://www.w3schools.com/js/tryit.asp?filename=tryjs_loc_href&name=ella 1. window.location.href -> https://www.w3schools.com/js/tryit.asp?filename=tryjs_loc_href&name=ella 2. window.location.hostname -> www.w3schools.com 3. window.location.pathname -> /js/tryit.asp 4. window.location.port -> https: 5. window.location.assign("https://www.abcd.com") -> 새로운 Document https://www.abcd.com ..