Search this site
Embedded Files
Skip to main content
Skip to navigation
Web Programming
首頁
「首頁」的複本
113學年度
108學年度
HTML
Web
Internet
IP
URI
CSS
Javascript
function
jQuery
Bootstrap
Form
PHP basics
Form with PHP
Session
File Upload
Object
debug
Database
mysqli
Read
Sort_Filter
Create_Delete
Update
Relations
常見問題
PDO
Read
Create
Search
Update
Relations
Framework
Slim
Laravel
CodeIgniter
Database
REST
PWA
Web Programming
首頁
「首頁」的複本
113學年度
108學年度
HTML
Web
Internet
IP
URI
CSS
Javascript
function
jQuery
Bootstrap
Form
PHP basics
Form with PHP
Session
File Upload
Object
debug
Database
mysqli
Read
Sort_Filter
Create_Delete
Update
Relations
常見問題
PDO
Read
Create
Search
Update
Relations
Framework
Slim
Laravel
CodeIgniter
Database
REST
PWA
More
首頁
「首頁」的複本
113學年度
108學年度
HTML
Web
Internet
IP
URI
CSS
Javascript
function
jQuery
Bootstrap
Form
PHP basics
Form with PHP
Session
File Upload
Object
debug
Database
mysqli
Read
Sort_Filter
Create_Delete
Update
Relations
常見問題
PDO
Read
Create
Search
Update
Relations
Framework
Slim
Laravel
CodeIgniter
Database
REST
PWA
URI
Uniform Resource Identifier (URI)
基本概念
Uniform Resource Identifier(URI)包含:
Uniform Resource Locator (URL)就是一般所謂的網址,是在Web上存取資源的主要依據,如:「http://www.fju.edu.tw」「https://sites.google.com/im.fju.edu.tw/benwu」或「jdbc:mysql://localhost:3306/practice」。
URL包含了幾個部份:
存取資源的協定 (如:http、https或jdbc:mysql)
資源的所在主機 (以
ip
或domain name表示,如:140.136.251.120或www.fju.edu.tw)
使用的連接埠 (port),連接埠會接在資源所在地,並以「:」隔開 ,一般而言,http使用port 80,所以,如果不指定,就是使用port 80。所以,「http://www.fju.edu.tw」或「http://www.fju.edu.tw:80」是一樣的。https的預設port是443,所以,「https://sites.google.com/im.fju.edu.tw/benwu」與「https://sites.google.com:443/im.fju.edu.tw/benwu」也是一樣的。(詳參:
https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers
)
在連接埠後面是資源的所在路徑,並以「/」隔開,如:「https://sites.google.com/im.fju.edu.tw/benwu」。
後面還可能會接一個查詢 (query),並以「?」隔開,如:「http://www.fju.edu.tw/sitemap.jsp?choice=0」,這個網頁利用查詢來決定不同角色看到的網站地圖,如:「http://www.fju.edu.tw/sitemap.jsp?choice=1」「http://www.fju.edu.tw/sitemap.jsp?choice=2」。如果查詢需要兩個以上的變數,可以使用「&」隔開,如:「http://www.fju.edu.tw/focusDetail.jsp?focusID=713&focusClassID=1」。
最後,有時候會使用片段(fragment)來指定網頁的某一個段落,,並以「#」起頭,如:「http://getbootstrap.com/getting-started/」中,因為文章很長,所以,可以直接跳到特定的段落,如:「http://getbootstrap.com/getting-started/#template」。
Uniform Resource Name (URN) ,但是,由於URN很少用,所以,一般都會認為URI就是URL
參考資料
https://en.wikipedia.org/wiki/Uniform_Resource_Identifier
https://en.wikipedia.org/wiki/Uniform_Resource_Locator
https://en.wikipedia.org/wiki/Uniform_Resource_Name
https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers
Report abuse
Report abuse