Web/WEB기본

w3c URL 규약

saltdoll 2014. 1. 28. 16:31
반응형


인터넷 주소인(URL:Uniform Resource Locator)의 규칙은 다음과 같습니다.


W3C 규약 :  http://www.w3.org/TR/url/


기본적으로 


URL 규약


he table below demonstrates how the getter condition for search results in different results depending on the exact original syntax of the URL:

Input URLsearch valueExplanation
http://example.com/empty stringNo <query> component in input URL.
http://example.com/??There is a <query> component, but it is empty. The question mark in the resulting value is the prefix.
http://example.com/?test?testThe <query> component has the value "test".
http://example.com/?test#?testThe (empty) <fragment> component is not part of the <query> component.



3.3.1 Canonicalize a scheme

To canonicalize a scheme, the user agent must use the steps in this section.

  1. If the first character of the scheme is not in ALPHA, the scheme is invalid.
  2. Process each character of the scheme in sequence:
    • If the current character is among ALPHA, DIGIT, "+", "-", and ".", output the current character.
    • Otherwise, if the current character is "%", the scheme is invalid, the scheme is invalid, output the current character.
    • Otherwise, the scheme is invalid, output the utf8-percent-escaping of the current character.


반응형