iT邦幫忙

第 12 屆 iThome 鐵人賽

DAY 24
0
Security

駭客入門系列 第 24

Day24 Web Security - HTTP Protocol Request

首先要講從 User 到 Server 中間發生了什麼事?
由 User ( 使用者端 ) 送出 request ( 請求 ) 到 HTTP 的統一介面 ( uniform interface ) ,
然後由 Server ( 伺服器端 ) 送出 response ( 回應 ),
( 如果想要看看瀏覽器的 request 和 response ,可以使用開發者工具,以 Chrome 來舉例 : 就是在網頁上按 F12 )
有興趣可以看這個參考網站 : https://www.astralweb.com.tw/chrome-devtools-developer-tools-network/ )

然後伴隨著資料的傳輸, HTTP 會輸出 回應狀態碼 ( response status code ) ,狀態碼有非常多種,每一種都有不同的代表意思, 以開頭的百位數可以分成 5 種 :

1 x x : 代表有收到 request ,但還需要繼續處理 request ( 100 Continue )
2 x x : 是正常下的情況,表示都正常 ( 顯示 200 OK )
3 x x : 則是要重新導向相關的訊息 ( 302 Found )
4 x x : 是 User 端有問題 ( 最常見的應該是 404 No Found ,其他還有 401 Unauthorized 跟 403 Forbidden )
5 x x : 是 Server 端有問題 ( 不常見, 500 Internal Server Error )

如果對回應狀態碼有興趣,可以參考下面這個網址
https://notfalse.net/48/http-status-codes


上一篇
Day23 Web Security - URL
下一篇
Day25 Web Security - Cookie
系列文
駭客入門30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言