7. Hostname and IP
• IP is an Unique identifier
– 就像身分証一樣
• 網路有自己的機制,可以讓你輸入IP就找到
那台機器。
• http://140.113.41.8
– 但這不make sense
• http://www.nctu.edu.tw
– It’s great!
14. HTTP Request Method
GET /register HTTP/1.1
Host: comic.ensky.tw
OR
GET http://comic.ensky.tw/register HTTP/1.1
Method URI Protocol_version
Key: value
15. HTTP Request Method
• GET http://comic.ensky.tw/register HTTP/1.1
• GET
– Read, 讀取資料
• POST
– Create, 新增資料
• PUT
– Update, 修改資料
• DELETE
– Delete, 刪除資料