XP1,240
Lesson · 01

HTTP/HTTPS

HTTP (HyperText Transfer Protocol) is the fundamental protocol of the web. HTTPS is its secure version.

Duration
2min
Level
L3
Type
Lesson
Progress
1/ 5

01What is HTTP?

HTTP enables data exchange between client (browser) and server.

Request-Response Model:

code
Browser → HTTP Request → Server
Browser ← HTTP Response ← Server

02HTTP Methods

MethodUsageExample
GETGet dataViewing a page
POSTSend dataSubmitting a form
PUTUpdateEditing profile
DELETEDeleteDeleting account
HEADHeaders onlyFile size check

03HTTP Status Codes

CodeMeaningDescription
200OKSuccessful
301MovedPermanent redirect
302FoundTemporary redirect
400Bad RequestInvalid request
401UnauthorizedAuthentication required
403ForbiddenAccess denied
404Not FoundPage not found
500Server ErrorServer error

04HTTPS = HTTP + SSL/TLS

HTTPS is the encrypted version of HTTP.

Differences:

HTTPHTTPS
Port 80Port 443
UnencryptedEncrypted
http://https://
FastSlightly slower

05Summary

  • HTTP = Web protocol
  • HTTPS = Secure HTTP
  • GET = Get data, POST = Send data
  • 200 = OK, 404 = Not Found, 500 = Error