JavaWeb http協議的自我描述

  • 2019 年 10 月 13 日
  • 筆記

1.http協議的組成
http:規範那種協議
localhost、127.0.0.1:訪問的ip地址(默認,根據自己的需求改變)
埠號:8080(默認,根據自己的需求改變)
工程:XXX
資源:可以是jsp,html,servlet 等等。
http://localhost:8080/工程名/要訪問的資源/
http://localhost:8080/XXX/login.jsp

 如:  Request URL: http://localhost:8080/WebDemo/demo.html  Request Method: GET(請求方式)  Status Code: 304 (狀態碼)  Remote Address: [::1]:8080(http版本和埠號)