사용자 도구

사이트 도구


http:url

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

다음 판
이전 판
http:url [2012/06/22 14:52]
kwon37xi 새로 만듦
http:url [2012/06/28 23:35] (현재)
kwon37xi
줄 2: 줄 2:
  
 ===== Relative URL ===== ===== Relative URL =====
-URL을 기술할 때 **''//example.com/hello/world.png''** 형태의 기술이 가능하다. 여기 보면 ''http:'' 혹은 ''https:''가 빠진 상태인데, 이렇게 되면 웹 브라우저는 자동으로 현재 페이지의 URL 스키마를 보고 http: 인지 https: 인지 여부를 판단하게 된다. 
-  * [[http://nedbatchelder.com/blog/200710/httphttps_transitions_and_relative_urls.html|Ned Batchelder: Http-https transitions and relative URLs]] 
-  * [[http://stackoverflow.com/questions/550038/is-it-valid-to-replace-http-with-in-a-script-src-http|html - Is it valid to replace http:// with // in a <script src="http://...">?]] 
  
 +URL을 기술할 때 <code>//example.com/hello/world.png</code> 형태의 기술이 가능하다. 여기 보면 ''http:'' 혹은 ''https:''가 빠진 상태인데, 이렇게 되면 웹 브라우저는 자동으로 현재 페이지의 URL 스키마를 보고 http: 인지 https: 인지 여부를 판단하게 된다.
  
 +  * 웹 브라우저의 컨텐츠에만 사용하라. 이메일 등에 사용하면 다른 의미가 된다.\
 +  * http://www.ietf.org/rfc/rfc3986.txt
 +  * [[http://nedbatchelder.com/blog/200710/httphttps_transitions_and_relative_urls.html|Ned Batchelder: Http-https transitions and relative URLs]]
 +  * [[http://stackoverflow.com/questions/550038/is-it-valid-to-replace-http-with-in-a-script-src-http|html - Is it valid to replace http:// with // in a <script src="http://...">?]]
http/url.1340344338.txt.gz · 마지막으로 수정됨: 2012/06/22 14:52 저자 kwon37xi