Skip to content

Instantly share code, notes, and snippets.

@williamHuang5468
Created February 8, 2017 14:09
Show Gist options
  • Save williamHuang5468/3948a85756d3e49265088ff4ecc506d2 to your computer and use it in GitHub Desktop.
Save williamHuang5468/3948a85756d3e49265088ff4ecc506d2 to your computer and use it in GitHub Desktop.
interview

網路

三向握手

  • Client 往 Server 送一個 SYN 來開啟三向握手。Client 將連接序號設定為隨機數 A
  • Server 回傳一個 SYN/ACK
  • Client 發送一個 ACK 。Server 收到 ACK 就完成三向握手。

POST 和 GET 的差別

最普遍的答案

  • GET使用URL或Cookie傳參。而POST將數據放在BODY中。
  • GET的URL會有長度上的限制,則POST的數據則可以非常大。
  • POST比GET安全,因為數據在地址欄上不可見。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment