사용자 도구

사이트 도구


http:url

차이

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

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
http:url [2012/06/22 15:07]
kwon37xi
http:url [2012/06/28 23:35] (현재)
kwon37xi
줄 5: 줄 5:
 URL을 기술할 때 <code>//example.com/hello/world.png</code> 형태의 기술이 가능하다. 여기 보면 ''http:'' 혹은 ''https:''가 빠진 상태인데, 이렇게 되면 웹 브라우저는 자동으로 현재 페이지의 URL 스키마를 보고 http: 인지 https: 인지 여부를 판단하게 된다. 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://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://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.1340345229.txt.gz · 마지막으로 수정됨: 2012/06/22 15:07 저자 kwon37xi