Skip to content

Learn HTTP and HTTPS by writing servers in Node.js.

Notifications You must be signed in to change notification settings

leotaozeng/learning-http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learning HTTP

Working as a web developer means it's good to know as much about how the internet works as possible.

The HTTP Protocol

  • Stands for Hypertext Transfer Protocol(超文本传输协议)
  • In standard HTTP, all information is sent in clear text(明文)
  • It follows the standard client-server model
  • It's a stateless protocol(无状态协议)
  • It's an application layer protocol(应用层协议) that allows web-based applications to communicate(通信) and exchange data(交换数据)
  • It's a TCP/IP based protocol(基于TCP传输层)
  • It's used for delivering contents. For example, images, videos, audios, documents, etc
  • It's connectionless
  • The computers that communicate via the HTTP must speak the http protocol

The HTTPS Protocol

  • Stands for Secure Hypertext Transfer Protocol(安全的超文本传输协议)
  • HTTPS = HTTP + SSL(Secure Socket Layer)
  • Encrypts the data that is being retrieved by HTTP
  • Cryptography is basically the science of hiding information
  • A plain text becomes ciphertext through an encryption algorithm(加密算法)
  • A public key(公钥) is used for encryption(加密) and a private key(私钥) is used for decryption(解密)
  • SSL handshake

Resources

HTTP, HTTPS, SSL / TLS Explained

What is HTTPS?

About

Learn HTTP and HTTPS by writing servers in Node.js.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published