URL 파서

링크를 확인하거나 쿼리를 진단하는 데 필요한 부분으로 전체 URL을 나눕니다.

링크를 확인하거나 쿼리를 진단하는 데 필요한 부분으로 전체 URL을 나눕니다.

사용 방법

  1. https 스킴, 전체 호스트 이름, 경로 및 쿼리가 포함된 샘플을 사용합니다.
  2. 파싱한 다음 스킴, 호스트, 경로 및 쿼리 값을 각각 확인합니다.
  3. /guides/start.html이 경로이고 lang=en&mode=print가 쿼리인지 확인합니다.

실습 예제

입력 예제

https://docs.example.com/guides/start.html?lang=en&mode=print

예상 결과

https
docs.example.com
/guides/start.html
lang=en&mode=print

결과 확인

호스트는 docs.example.com이고 스킴은 https여야 합니다.

다른 안내서 읽기

Cookie
We care about your data and would love to use cookies to improve your experience.

Learn how we use cookies