Chapterبەش 7 · Lectureوانە 7.4

Web and E-mail Protocols: HTTP, HTTPS, SMTP, POP3 and IMAPپرۆتۆکۆڵەکانی وێب و ئیمەیڵ: HTTP، HTTPS، SMTP، POP3 و IMAP

How the Web and e-mail really travel across a network. The lesson recaps HTTP and URLs, then shows how HTTPS wraps HTTP in TLS on port 443, how a TLS 1.3 handshake runs, what HTTP/2 and HTTP/3 changed, and how web caches and proxy servers save trips — and why browsers and CDNs do that job today. For e-mail it follows a message from sender to receiver: SMTP pushes it, POP3 or IMAP pulls it, each with its own ports.

وێب و بەڕاستی چۆن بە دەڕۆن. وانەکە و دووپاتە دەکاتەوە، پاشان پیشان دەدات چۆن لە ناو لەسەر ⁦443⁩ دەپێچێتەوە، ⁦1.3⁩ چۆن ڕوو دەدات، ⁦HTTP/2⁩ و ⁦HTTP/3⁩ چییان گۆڕی و وێب و چۆن گەشت کەم دەکەنەوە — و بۆچی ئەمڕۆ و ئەم کارە دەکەن. بۆ ، نامەیەک لە نێرەرەوە تا وەرگر دەگرێتە بەر: پاڵی دەنێت، یان ڕایدەکێشێت، هەریەکە بە خۆی.

20 min read22 خولەک خوێندنەوە · 17 stepsهەنگاو

What you will learnچی فێر دەبیت

  • Describe an HTTP exchange between a browser (the user agent) and a web server, the objects of a page and the parts of a URL.
  • Explain HTTPS as HTTP inside TLS on port 443, follow a TLS 1.3 handshake, and compare HTTP with HTTPS correctly.
  • Say what HTTP/2 and HTTP/3 changed, and how proxy caches, browser caches and CDNs keep copies.
  • Trace an e-mail from MUA to MTA to MDA, and choose the right protocol and port for sending (SMTP) and reading (POP3 or IMAP).
  • ئاڵوگۆڕێکی لە نێوان (بریکاری ) و ، شتەکانی و بەشەکانی وەسف بکەیت.
  • وەک لە ناو لەسەر ⁦443⁩ ڕوون بکەیتەوە، ⁦1.3⁩ هەنگاو بە هەنگاو ببینیت و و بە دروستی بەراورد بکەیت.
  • بڵێیت ⁦HTTP/2⁩ و ⁦HTTP/3⁩ چییان گۆڕی و ، و چۆن کۆپی هەڵدەگرن.
  • لە MUA بۆ MTA بۆ MDA بگریتە بەر و و گونجاو بۆ ناردن () و خوێندنەوە ( یان ) هەڵبژێریت.

The Web in one exchange: HTTPوێب لە یەک ئاڵوگۆڕدا: HTTP

The Web runs on HTTP, the HyperText Transfer Protocol, and two programs take part. The HTTP client is the web browser — the user agent for the Web: it asks for pages, shows them, and gives you links, tabs and settings to move around and change how it works. The HTTP server is a web server program that holds the pages. The browser sends a request, the server sends back a response, and both travel over a TCP connection — to port 80 for plain HTTP.

وێب لەسەر کار دەکات و دوو بەشدارن. — بریکاری بۆ وێب: داوا دەکات، پیشانیان دەدات و ، تاب و ڕێکخستنت دەداتێ بۆ گەڕان و گۆڕینی شێوەی کارکردنی. کە هەڵدەگرێت. دەنێرێت، دەگەڕێنێتەوە و هەردووکیان بە پەیوەندییەکی دەڕۆن — بۆ ⁦80⁩ بۆ ئاسایی.

A laptop on the left is the HTTP client: the web browser, the user agent for the Web (Chrome, Firefox, Safari, Edge). A server on the right is the HTTP server: a web server program that holds the pages (Nginx, Apache, IIS). Arrow 1, HTTP request GET /index.html, goes to the server; arrow 2, HTTP response 200 OK plus the page, comes back, over a TCP connection to port 80. Below, one response as it travels is a strip of four parts: IP header (which computer?), TCP header (which program? port 80), HTTP header (status, type, size) and the data, the HTML file of the page itself. Each layer adds its own header.لاپتۆپێک لە چەپ ڕاژەخوازی HTTPـە: تۆڕگەڕ، بریکاری بەکارهێنەر بۆ وێب (Chrome، Firefox، Safari، Edge). ڕاژەکارێک لە ڕاست ڕاژەکاری HTTPـە: بەرنامەیەکی ڕاژەکاری وێب کە لاپەڕەتۆڕەکان هەڵدەگرێت (Nginx، Apache، IIS). تیری 1، داواکاریی HTTP بە GET /index.html، دەچێت بۆ ڕاژەکارەکە؛ تیری 2، وەڵامی HTTP بە 200 OK و لاپەڕەتۆڕەکە، دەگەڕێتەوە، بە پەیوەندییەکی TCP بۆ پۆرتی 80. لە خوارەوە یەک وەڵام لە ڕێگادا شریتێکی چوار بەشییە: سەردێڕی IP (کام کۆمپیوتەر؟)، سەردێڕی TCP (کام بەرنامە؟ پۆرتی 80)، سەردێڕی HTTP (دۆخ، جۆر، قەبارە) و دراوە، واتە فایلی HTMLـی خودی لاپەڕەتۆڕەکە. هەر چینێک سەردێڕی خۆی زیاد دەکات.
Two programs, one request and one response — wrapped in TCP and IP on the way.دوو ، یەک و یەک — لە ڕێگادا لە ناو و IPـدا پێچراون.CêIT

On the wire, one HTTP message is packed like a parcel inside a parcel: the HTTP header and the page are inside a TCP segment, which is inside an IP packet — the encapsulation you already know. The methods (GET, POST…), the status codes (200, 404…) and the headers are taught in HTTP and the request–response cycle; this lesson is about what carries them. To run a web server yourself, try a web server in Packet Tracer.

لەسەر هێڵ، یەک پەیامی وەک بەستەیەک لە ناو بەستەیەکدا دەپێچرێت: سەردێڕی و لە ناو و ئەویش لە ناو IPـدا — هەمان پێچانەوە کە دەیناسیت. (GET، POST…)، (⁦200⁩، ⁦404⁩…) و سەردێڕەکان لە HTTP و خولی داواکاری–وەڵامـدا دەخوێنرێن؛ ئەم وانەیە باسی ئەو شتانە دەکات کە هەڵیاندەگرن. بۆ ئەوەی خۆت کار پێ بکەیت، ڕاژەکاری وێب لە Packet Tracer تاقی بکەرەوە.

The Web in one exchange: HTTPوێب لە یەک ئاڵوگۆڕدا: HTTP

A web page is many objectsلاپەڕەتۆڕێک چەندین شتە

A web page is not one file. It is an HTML document plus the objects it points to: pictures (JPEG, PNG, WebP, AVIF), style sheets (CSS), JavaScript files, fonts, audio and video. The browser first fetches the HTML, finds the other objects in it and asks for each one with a request of its own:

یەک نییە. بەڵگەنامەیەکی لەگەڵ ئەو شتانەی ئاماژەیان بۆ دەکات: وێنە (JPEG، PNG، WebP، AVIF)، ، ، ، دەنگ و ڤیدیۆ. سەرەتا دەهێنێت، شتەکانی تر لە ناویدا دەدۆزێتەوە و هەریەکەیان بە جیا داوا دەکات:

A sequence diagram with a browser line on the left and a web server line on the right. 1: GET /index.php, answered by 200 OK with the HTML document. 2: the browser reads the HTML and finds it needs 3 more files. 3: GET /style.css, answered by 200 OK with the CSS file. 4: GET /logo.png, answered by 200 OK with the picture. 5: GET /app.js, answered by 404 Not Found because the file is missing. 6: the browser draws the page on the screen, then runs any JavaScript it received. A note says every file is a separate request and a separate response.وێنەیەکی ڕیزبەندی بە هێڵی تۆڕگەڕ لە چەپ و هێڵی ڕاژەکاری وێب لە ڕاست. ١: GET /index.php، کە بە 200 OK و بەڵگەنامە HTMLـەکە وەڵام دەدرێتەوە. ٢: تۆڕگەڕەکە HTMLـەکە دەخوێنێتەوە و دەبینێت پێویستی بە ٣ فایلی ترە. ٣: GET /style.css، کە بە 200 OK و فایلی CSS وەڵام دەدرێتەوە. ٤: GET /logo.png، کە بە 200 OK و وێنەکە وەڵام دەدرێتەوە. ٥: GET /app.js، کە بە 404 Not Found وەڵام دەدرێتەوە چونکە فایلەکە نییە. ٦: تۆڕگەڕەکە لاپەڕەکە لەسەر شاشە دەکێشێت، پاشان هەر JavaScriptـێک وەریگرتبێت جێبەجێی دەکات. تێبینییەک دەڵێت هەر فایلێک داواکارییەکی جیا و وەڵامێکی جیای هەیە.
One page, many objects: each object is its own request and response.یەک ، چەندین شت: هەر شتێک و خۆی هەیە.CêIT

Older lists of web objects also name Java applets: small Java programs that ran inside a browser plug-in. They are history — browsers dropped the Java plug-in years ago, and Java itself removed the Applet API in JDK 26 (JEP 504). What applets did is now done with JavaScript and WebAssembly.

لیستە کۆنەکانی شتەکانی وێب Java appletـیش دەژمێرن: بچووکی Java کە لە ناو پێوەکراوێکی کاریان دەکرد. ئەمانە مێژوون — چەند ساڵێکە پێوەکراوی Javaیان لابردووە و خودی Java لە ⁦JDK 26⁩ـدا Applet APIـی لابرد ⁦(JEP 504)⁩. ئەوەی applet دەیکرد ئەمڕۆ بە و WebAssembly دەکرێت.

The Web in one exchange: HTTPوێب لە یەک ئاڵوگۆڕدا: HTTP

The URL: which protocol, which portURL: کام پرۆتۆکۆڵ، کام پۆرت

Every request starts from a URL. In https://www.example.com:443/file.html?key1=value1&key2=value2#fragment, https:// is the scheme (the protocol), www a sub-domain, example.com the domain name, :443 the port, /file.html the path, ? starts the query and key1=value1&key2=value2 are its parameters; #fragment points to a place inside the page and never leaves the browser. Each part is explained in URLs: the address of every page.

هەموو لە دەست پێ دەکات. لە https://www.example.com:443/file.html?key1=value1&key2=value2#fragmentـدا، https:// شێوازەکەیە ()، www ژێردۆمەینێکە، example.com ، :443 ، /file.html ، ? پرسیار دەست پێ دەکات و key1=value1&key2=value2 پارامەتەرەکانین؛ #fragment ئاماژە بۆ شوێنێک لە ناو دەکات و هەرگیز لە دەرناچێت. هەر بەشێک لە URL: ناونیشانی هەموو لاپەڕەتۆڕێکـدا ڕوون کراوەتەوە.

The URL https://www.example.com:8080/folder/page.php?id=5#top is cut into seven boxes. Three green boxes are the three main parts: https:// is the protocol (how to talk), example.com is the domain name (which website), and /folder/page.php is the path (which file on the server). Four dashed boxes are optional parts: www. is a sub-domain (part of the host name), :8080 is the port (which door, usually hidden), ?id=5 is the query string (extra data for the page) and #top is the fragment (a place inside the page). A note says the browser never sends the fragment to the server.URLـی https://www.example.com:8080/folder/page.php?id=5#top کراوە بە حەوت سندوق. سێ سندوقی سەوز سێ بەشە سەرەکییەکەن: https:// پرۆتۆکۆڵە (چۆن قسە بکرێت)، example.com ناوی دۆمەینە (کام تۆڕگە) و /folder/page.php ڕێڕەوە (کام فایل لەسەر ڕاژەکارەکە). چوار سندوقی پچڕپچڕ بەشی ئارەزوومەندانەن: www. پێشگری دۆمەینە (بەشێک لە ناوی ڕاژەکارەکە)، :8080 پۆرتە (کام دەرگا، زۆرجار شاراوەیە)، ?id=5 زنجیرەی پرسە (دراوەی زیادە بۆ لاپەڕەکە) و #top بەشی #ـە (شوێنێک لەناو لاپەڕەکەدا). تێبینییەک دەڵێت تۆڕگەڕ هەرگیز ئەو بەشە نانێرێت بۆ ڕاژەکار.
The parts of a URL: the scheme decides the protocol and, unless a port is written, the port.بەشەکانی : شێوازەکە دیاری دەکات و، ئەگەر نەنووسرابێت، .CêIT

The scheme already chooses the port: http means port 80 and https means port 443, so the port is normally left out. Writing https://example.com:80/ is a mistake: the browser would try to speak TLS to the door where plain HTTP listens, and the page would not load.

شێوازەکە خۆی هەڵدەبژێرێت: http واتە ⁦80⁩ و https واتە ⁦443⁩، بۆیە زۆرجار نانووسرێت. نووسینی https://example.com:80/ هەڵەیە: هەوڵ دەدات بە قسە لەگەڵ ئەو دەرگایە بکات کە ئاسایی گوێی لێ دەگرێت و ناکرێتەوە.

HTTPS: HTTP inside TLSHTTPS: HTTP لە ناو TLSـدا

HTTPS (HyperText Transfer Protocol Secure) is not a new set of messages. It is the same HTTP — the same GET, the same 200 OK — sent through a TLS connection. TLS (Transport Layer Security) does three jobs: it encrypts the messages, so someone listening on the café Wi-Fi sees only scrambled bytes; it detects any change made on the way; and with the server's digital certificate it proves that you are really talking to bank.example. HTTPS URLs begin with https://, and the server listens on port 443 instead of 80.

⁦(HyperText Transfer Protocol Secure)⁩ کۆمەڵە پەیامێکی نوێ نییە. هەمان — هەمان GET، هەمان ⁦200 OK⁩ — کە بە پەیوەندییەکی دەنێردرێت. ⁦(Transport Layer Security)⁩ سێ کار دەکات: پەیامەکان شفرە دەکات، بۆیە کەسێک کە لەسەر چایخانەکە گوێ دەگرێت تەنیا تێکەڵوپێکەڵ دەبینێت؛ هەر گۆڕانکارییەک لە ڕێگادا دەدۆزێتەوە؛ و بە دەیسەلمێنێت کە بەڕاستی قسە لەگەڵ bank.example دەکەیت. بە https:// دەست پێ دەکەن و لە جیاتی ⁦80⁩ گوێ لە ⁦443⁩ دەگرێت.

Two panels. Left, http:// on port 80: a stack of HTTP on TCP on IP, and what someone on the same Wi-Fi reads — POST /login HTTP/1.1, user=aram, password=Secr3t! — so anyone on the path can read or change everything and nothing proves which server answered. Right, https:// on port 443: HTTP on TLS 1.3 (with a padlock) on TCP on IP; the listener sees only bytes such as 17 03 03 00 5a 8f c2; the data is encrypted, changes are detected, and the certificate proves the server's name; only the IP addresses, the port and the site name stay visible. A band says TLS sits between TCP and HTTP, HTTP stays an application-layer protocol, HTTPS is not a transport-layer protocol, and SSL is dead: TLS 1.2 and 1.3 only.دوو بەش. چەپ، http:// لەسەر پۆرتی 80: کۆگای HTTP لەسەر TCP لەسەر IP و ئەوەی کەسێک لەسەر هەمان وای‌فای دەیخوێنێتەوە — POST /login HTTP/1.1، user=aram، password=Secr3t! — بۆیە هەر کەسێک لەسەر ڕێگاکە دەتوانێت هەموو شتێک بخوێنێتەوە یان بیگۆڕێت و هیچ شتێک نایسەلمێنێت کام ڕاژەکار وەڵامی دایەوە. ڕاست، https:// لەسەر پۆرتی 443: HTTP لەسەر TLS 1.3 (بە نیشانەی قفڵ) لەسەر TCP لەسەر IP؛ گوێگرەکە تەنیا بایتی وەک 17 03 03 00 5a 8f c2 دەبینێت؛ دراوەکە شفرەکراوە، گۆڕانکاری دەدۆزرێتەوە و بڕوانامەی دیجیتاڵییەکە ناوی ڕاژەکارەکە دەسەلمێنێت؛ تەنیا ناونیشانەکانی IP، پۆرت و ناوی تۆڕگەکە دیار دەمێنن. شریتێک دەڵێت TLS لە نێوان TCP و HTTPـدایە، HTTP هەر پرۆتۆکۆڵێکی چینی ئەپە، HTTPS پرۆتۆکۆڵێکی چینی گواستنەوە نییە و SSL مردووە: تەنیا TLS 1.2 و 1.3.
The same request, readable on the left and scrambled on the right.هەمان ، لە چەپ دەخوێنرێتەوە و لە ڕاست تێکەڵوپێکەڵە.CêIT

Where does TLS sit? Between HTTP and TCP: HTTP hands its message to TLS, TLS encrypts it and hands it to TCP. So HTTP — and therefore HTTPS — stays an application-layer protocol; HTTPS does not “work at the transport layer”, even though TLS has transport in its name. The whole picture is in where TLS really sits, and certificates in Certificates and TLS.

لە کوێیە؟ لە نێوان و : پەیامەکەی دەداتە ، شفرەی دەکات و دەیداتە . کەواتە — و هەروەها — هەر ؛ «لە کار ناکات»، هەرچەندە وشەی transport لە ناوی . وێنە تەواوەکە لە TLS بەڕاستی لە کوێیەـدایە و لە بڕوانامەکان و TLSـدا.

HTTPS: HTTP inside TLSHTTPS: HTTP لە ناو TLSـدا

Starting HTTPS: the TLS handshakeدەستپێکردنی HTTPS: تەوقەکردنی TLS

Before the first HTTPS request, the browser and the server run a short TLS handshake on port 443. Watch it message by message:

پێش یەکەم ، و کورت لەسەر ⁦443⁩ ئەنجام دەدەن. پەیام بە پەیام سەیری بکە:

Animation in five steps between a browser (192.0.2.10) and a web server (203.0.113.80, port 443). 1: the TCP three-way handshake, SYN, SYN-ACK, ACK — nothing secret yet. 2: ClientHello with TLS 1.3, the algorithms and the browser's key share. 3: the server answers with ServerHello and the other key share, then — already encrypted — its certificate, a signature and Finished; both sides now have the same session key. 4: the browser checks the certificate (name, dates, CA signature) and sends Finished together with its first request, GET /index.html, encrypted. 5: the server answers 200 OK with the page, encrypted. A note says TLS 1.3 (RFC 9846, July 2026) needs one extra round trip after TCP, while TLS 1.2 needed two.
Animation in five steps between a browser (192.0.2.10) and a web server (203.0.113.80, port 443). 1: the TCP three-way handshake, SYN, SYN-ACK, ACK — nothing secret yet. 2: ClientHello with TLS 1.3, the algorithms and the browser's key share. 3: the server answers with ServerHello and the other key share, then — already encrypted — its certificate, a signature and Finished; both sides now have the same session key. 4: the browser checks the certificate (name, dates, CA signature) and sends Finished together with its first request, GET /index.html, encrypted. 5: the server answers 200 OK with the page, encrypted. A note says TLS 1.3 (RFC 9846, July 2026) needs one extra round trip after TCP, while TLS 1.2 needed two.
TCP first, then one TLS round trip — and the first request is already encrypted.سەرەتا ، پاشان یەک چوون و گەڕانەوەی — و یەکەم پێشتر شفرەکراوە.CêIT

With TLS 1.3 the handshake costs only one round trip after the TCP connection, and the browser's first request already travels encrypted; TLS 1.2 needed two round trips. Today TLS 1.3 is defined in RFC 9846 (July 2026), which replaced RFC 8446 of 2018. The key exchange and the certificate check inside the handshake are explained in The TLS handshake.

بە ⁦TLS 1.3⁩، دوای پەیوەندیی تەنیا یەک چوون و گەڕانەوە دەخایەنێت و یەکەم پێشتر بە شفرەکراوی دەڕوات؛ ⁦TLS 1.2⁩ دوو چوون و گەڕانەوەی دەویست. ئەمڕۆ ⁦TLS 1.3⁩ لە ⁦RFC 9846⁩ـدا (تەممووزی ⁦2026⁩) پێناسە کراوە کە جێگەی ⁦RFC 8446⁩ـی ساڵی ⁦2018⁩ی گرتەوە. ئاڵوگۆڕی و پشکنینی لە ناو لە تەوقەکردنی TLSـدا ڕوون کراونەتەوە.

HTTPS: HTTP inside TLSHTTPS: HTTP لە ناو TLSـدا

HTTP and HTTPS side by sideHTTP و HTTPS لە تەنیشت یەک

A classic homework question asks you to differentiate between HTTP and HTTPS. Here is the comparison as it is true in 2026:

پرسیارێکی ناسراوی ئەرکی ماڵەوە داوا دەکات جیاوازیی و بکەیت. ئەمە بەراوردەکەیە وەک لە ⁦2026⁩ـدا ڕاستە:

CompareبەراوردHTTPHTTPS
Full nameناوی تەواوHyperText Transfer ProtocolHyperText Transfer Protocol Secure
URL begins with دەست پێ دەکات بەhttp://https://
Port80443 (also UDP 443 for HTTP/3)⁦443⁩ (هەروەها ⁦UDP 443⁩ بۆ ⁦HTTP/3⁩)
SecurityپاراستنNone: anyone on the path can read or change the data (eavesdropping)هیچ: هەر کەسێک لەسەر ڕێگاکە دەتوانێت بخوێنێتەوە یان بیگۆڕێت ()TLS 1.2 or 1.3 encrypts every request and response; the certificate proves the server⁦TLS 1.2⁩ یان ⁦1.3⁩ هەموو و شفرە دەکات؛ دەسەلمێنێت
LayerچینApplication layerApplication layer, carried inside TLS, which sits between HTTP and TCP، لە ناو دەڕوات کە لە نێوان و
SpeedخێراییNo encryption stepبێ هەنگاوی شفرەکردنOne extra round trip with TLS 1.3 (none with HTTP/3); encryption costs today's processors very littleیەک چوون و گەڕانەوەی زیاتر بە ⁦TLS 1.3⁩ (بە ⁦HTTP/3⁩ هیچ)؛ شفرەکردن کەمێکی زۆر کەم لە پرۆسێسەرەکانی ئەمڕۆ وەردەگرێت
In browsers todayلە ئەمڕۆداMarked “Not secure”; never for logins or formsبە «Not secure» نیشان دەکرێت؛ هەرگیز بۆ و فۆرم ناThe normal case; HTTP/2 and HTTP/3 in browsers need itدۆخی ئاسایی؛ ⁦HTTP/2⁩ و ⁦HTTP/3⁩ لە پێویستیان پێیەتی

HTTP/1.1, HTTP/2 and HTTP/3⁦HTTP/1.1⁩، ⁦HTTP/2⁩ و ⁦HTTP/3⁩

The requests and responses have hardly changed in thirty years, but the way they are carried has. HTTP/1.1 (1997, today RFC 9112) sends text messages, one request at a time on each TCP connection, so browsers open several connections. HTTP/2 (2015, today RFC 9113) cuts the messages into binary frames and sends many requests at once over one TCP connection; browsers use it only with HTTPS. HTTP/3 (RFC 9114, 2022) runs over QUIC on UDP port 443, with TLS 1.3 built in.

و لە سی ساڵدا زۆر کەم گۆڕاون، بەڵام ڕێگای گواستنەوەیان گۆڕاوە. ⁦HTTP/1.1⁩ (⁦1997⁩، ئەمڕۆ ⁦RFC 9112⁩) پەیامی دەقی دەنێرێت، لەسەر هەر پەیوەندییەکی یەک لە یەک کاتدا، بۆیە چەند پەیوەندییەک دەکەنەوە. ⁦HTTP/2⁩ (⁦2015⁩، ئەمڕۆ ⁦RFC 9113⁩) پەیامەکان دەکات بە چوارچێوەی و چەندین پێکەوە لەسەر یەک پەیوەندیی دەنێرێت؛ تەنیا لەگەڵ بەکاری دەهێنن. ⁦HTTP/3⁩ (⁦RFC 9114⁩، ⁦2022⁩) لەسەر لە ⁦443⁩ی کار دەکات و ⁦TLS 1.3⁩ـی تێدا دروست کراوە.

Three columns. HTTP/1.1 (1997, today RFC 9112): HTTP/1.1 on TLS (for HTTPS) on TCP on IP; requests go one after another — text messages, one request at a time on a connection. HTTP/2 (2015, today RFC 9113): HTTP/2 on TLS on TCP on IP; small frames of three requests are mixed on one connection — binary frames, many requests at once on one TCP connection. HTTP/3 (RFC 9114, 2022): HTTP/3 on QUIC with TLS 1.3 on UDP port 443 on IP; three independent streams, where a missing packet in one stream holds up only that stream.سێ ستوون. HTTP/1.1 (1997، ئەمڕۆ RFC 9112): HTTP/1.1 لەسەر TLS (بۆ HTTPS) لەسەر TCP لەسەر IP؛ داواکارییەکان یەک لە دوای یەک دەڕۆن — پەیامی دەقی، لەسەر هەر پەیوەندییەک یەک داواکاری لە یەک کاتدا. HTTP/2 (2015، ئەمڕۆ RFC 9113): HTTP/2 لەسەر TLS لەسەر TCP لەسەر IP؛ چوارچێوەی بچووکی سێ داواکاری لەسەر یەک پەیوەندی تێکەڵ دەکرێن — چوارچێوەی دووانی، چەندین داواکاری پێکەوە لەسەر یەک پەیوەندیی TCP. HTTP/3 (RFC 9114، 2022): HTTP/3 لەسەر QUIC بە TLS 1.3 لەسەر پۆرتی 443ی UDP لەسەر IP؛ سێ ڕێڕەوی سەربەخۆ، کە پاکێتێکی ونبوو لە یەک ڕێڕەودا تەنیا هەمان ڕێڕەو ڕادەگرێت.
Same messages, three ways to carry them.هەمان پەیام، سێ ڕێگا بۆ گواستنەوەیان.CêIT

Why HTTP/3? With HTTP/2, one lost TCP packet makes every request on the connection wait until it is resent (head-of-line blocking). QUIC keeps each request in its own stream, so a loss holds up only that stream, and it sets up transport and encryption in one handshake. How QUIC is reliable on top of UDP is in QUIC and HTTP/3. If a network blocks UDP, the browser simply falls back to HTTP/2.

بۆچی ⁦HTTP/3⁩؟ لە ⁦HTTP/2⁩ـدا، یەک ونبووی وا دەکات هەموو سەر پەیوەندییەکە چاوەڕێ بکەن تا دووپاتە دەنێردرێتەوە (ڕێگیریی سەری ڕیز). هەر لە ڕێڕەوی خۆیدا دادەنێت، بۆیە ونبوونێک تەنیا ئەو ڕێڕەوە ڕادەگرێت؛ هەروەها گواستنەوە و شفرەکردن بە یەک تەوقەکردن ئامادە دەکات. چۆن لەسەر متمانەپێکراو دەبێت لە QUIC و ⁦HTTP/3⁩ـدایە. ئەگەر ڕابگرێت، بە سادەیی دەگەڕێتەوە بۆ ⁦HTTP/2⁩.

Web caching: a proxy server keeps copiesکاشی وێب: ڕاژەکارێکی بریکار کۆپی هەڵدەگرێت

In one school or company many people ask for the same objects — the same logo, the same news page. A web cache, also called a proxy server, sits between their browsers and the Internet and keeps copies. The object's real home is the origin server. Watch two people ask for the same picture:

لە قوتابخانەیەک یان کۆمپانیایەکدا زۆر کەس هەمان شت داوا دەکەن — هەمان لۆگۆ، هەمان هەواڵ. وێب، کە ناوێکی تری ، لە نێوان و دادەنیشێت و کۆپی هەڵدەگرێت. ماڵی ڕاستەقینەی شتەکە . سەیر بکە چۆن دوو کەس هەمان وێنە داوا دەکەن:

Animation in six steps with Aram's browser and Shilan's browser on the left, a web cache (proxy server) in the middle with a shelf of stored copies, and the origin server www.example.com on the right. 1: Aram's browser sends GET /logo.png to the proxy. 2b: the proxy has no copy, so it sends GET /logo.png to the origin server. 3–4: the origin answers 200 OK and the proxy stores logo.png on its shelf. 5: the proxy forwards a copy to Aram. Later Shilan's browser asks for the same file; 2a: the proxy has a copy and answers at once, and the origin server is not asked. Notes: there are two separate TCP connections, browser to proxy and proxy to origin; the cache makes it faster for Shilan, saves traffic on the Internet link and work for the origin; today HTTPS hides objects from a shared proxy, so caching happens in browsers and CDNs.
Animation in six steps with Aram's browser and Shilan's browser on the left, a web cache (proxy server) in the middle with a shelf of stored copies, and the origin server www.example.com on the right. 1: Aram's browser sends GET /logo.png to the proxy. 2b: the proxy has no copy, so it sends GET /logo.png to the origin server. 3–4: the origin answers 200 OK and the proxy stores logo.png on its shelf. 5: the proxy forwards a copy to Aram. Later Shilan's browser asks for the same file; 2a: the proxy has a copy and answers at once, and the origin server is not asked. Notes: there are two separate TCP connections, browser to proxy and proxy to origin; the cache makes it faster for Shilan, saves traffic on the Internet link and work for the origin; today HTTPS hides objects from a shared proxy, so caching happens in browsers and CDNs.
The first request travels to the origin; the second is answered from the cache.یەکەم دەچێت بۆ ؛ دووەم لە وەڵام دەدرێتەوە.CêIT
  1. The browser sends its HTTP request to the web cache (proxy), not to the origin server.

    بۆ وێب () دەنێرێت، نەک بۆ .

  2. The cache checks for a local copy. 2a It has one: it sends the object to the browser at once. 2b It has none: it sends its own HTTP request to the origin server.

    بۆ کۆپییەکی ناوخۆیی دەگەڕێت. ⁦2a⁩ هەیەتی: دەستبەجێ شتەکە بۆ دەنێرێت. ⁦2b⁩ نییەتی: خۆی بۆ دەنێرێت.

  3. The origin server sends the object to the cache.

    شتەکە بۆ دەنێرێت.

  4. The cache stores a local copy of the object.

    کۆپییەکی ناوخۆیی شتەکە هەڵدەگرێت.

  5. The cache forwards a copy to the browser.

    کۆپییەک بۆ دەنێرێت.

There are two TCP connections: browser ↔ cache and cache ↔ origin server. To the origin the proxy is a client; to the browser it is the server.

دوو پەیوەندیی هەن: ↔ و ↔ . بۆ ، ؛ بۆ ، .

Web caching: a proxy server keeps copiesکاشی وێب: ڕاژەکارێکی بریکار کۆپی هەڵدەگرێت

Caches today: browsers and CDNsکاش لە ئەمڕۆدا: تۆڕگەڕەکان و ڕایەڵەی گەیاندنی ناوەڕۆک

A shared proxy cache helps much less today. Almost all web traffic is HTTPS, and an ordinary proxy in the path sees only encrypted bytes: it can pass the connection through, but it cannot read or store the objects. So the old figures about how much traffic proxies saved belong to the plain-HTTP years. Copies are now kept in three places: the browser cache on your own device, the servers of a CDN (content delivery network) in cities close to the users, and the origin server itself.

هاوبەشی ئەمڕۆ زۆر کەمتر یارمەتی دەدات. نزیکەی هەموو هاتوچۆی وێب و ئاسایی لەسەر ڕێگاکە تەنیا شفرەکراو دەبینێت: دەتوانێت پەیوەندییەکە تێپەڕێنێت، بەڵام ناتوانێت شتەکان بخوێنێتەوە یان هەڵیانبگرێت. بۆیە ئەو ژمارە کۆنانەی دەیانگوت چەند هاتوچۆیان پاشەکەوت دەکرد هی سەردەمی ئاساییە. ئێستا کۆپییەکان لە سێ شوێندا هەڵدەگیرێن: لەسەر ئامێرەکەی خۆت، لە شارانی نزیک لە و خودی .

Three boxes from near to far, joined by arrows. 1 Browser cache: on your own device, the files already received, no trip at all. 2 CDN edge server: in a nearby city or country, copies for many users, a short trip. 3 Origin server: where the site really lives, the original files, a long trip. The browser looks in order 1, 2, 3, and the first copy that is still fresh wins. The header Cache-Control: max-age=86400 shows that the origin decides how long a copy stays fresh (86,400 seconds, one day). A note says an ordinary proxy in the middle sees only encrypted HTTPS, so it cannot keep copies.سێ سندوق لە نزیکەوە بۆ دوور، بە تیر بەستراون. 1 کاشی تۆڕگەڕ: لەسەر ئامێرەکەی خۆت، فایلە پێشتر وەرگیراوەکان، هیچ گەشتێک نییە. 2 ڕاژەکاری ڕایەڵەی گەیاندنی ناوەڕۆک: لە شارێک یان وڵاتێکی نزیک، کۆپی بۆ زۆر بەکارهێنەر، گەشتێکی کورت. 3 ڕاژەکاری سەرچاوە: شوێنی ڕاستەقینەی تۆڕگەکە، فایلە ڕەسەنەکان، گەشتێکی درێژ. تۆڕگەڕەکە بە ڕیز 1، 2، 3 دەگەڕێت و یەکەم کۆپیی هێشتا تازە بەکار دێت. سەردێڕی Cache-Control: max-age=86400 پیشان دەدات کە ڕاژەکاری سەرچاوەکە بڕیار دەدات کۆپییەک چەند تازە دەمێنێتەوە (86,400 چرکە، یەک ڕۆژ). تێبینییەک دەڵێت ڕاژەکاری بریکارێکی ئاسایی لە ناوەڕاستدا تەنیا HTTPSـی شفرەکراو دەبینێت، بۆیە ناتوانێت کۆپی هەڵبگرێت.
Near copies first: the browser cache, then the CDN, then the origin.سەرەتا کۆپیی نزیک: ، پاشان ، پاشان .CêIT

The origin server decides how long a copy may be used, with a header such as Cache-Control: max-age=86400 (one day). Organisations still run proxy servers, but mostly to filter and log traffic, not to save it.

بە سەردێڕێکی وەک Cache-Control: max-age=86400 (یەک ڕۆژ) بڕیار دەدات کۆپییەک بۆ چەند کات بەکار بێت. دامەزراوەکان هێشتا بەکار دەهێنن، بەڵام زیاتر بۆ پاڵاوتن و تۆمارکردنی هاتوچۆ، نەک بۆ پاشەکەوتکردنی.

E-mail: push with SMTP, pull with POP3 or IMAPئیمەیڵ: پاڵنان بە SMTP، ڕاکێشان بە POP3 یان IMAP

Internet mail needs two kinds of programs. User agents are the mail apps people use to read, reply to, write, forward and save messages. Mail servers keep the users' mailboxes and talk both to their own users' apps and to other mail servers. A message is pushed from the sender's app to her mail server, and from there to the receiver's mail server, always with SMTP. The receiver's app then pulls it out of the mailbox with POP3 or IMAP.

پێویستی بە دوو جۆر هەیە. بریکارەکانی ئەو نامەن کە خەڵک بۆ خوێندنەوە، وەڵامدانەوە، نووسین، ناردنەوە بۆ کەسێکی تر و هەڵگرتنی نامە بەکاریان دەهێنن. سندووقی نامەی هەڵدەگرن و هەم لەگەڵ خۆیان هەم لەگەڵ تر قسە دەکەن. نامەیەک لە نێرەرەوە بۆ پاڵ دەنرێت و لەوێشەوە بۆ وەرگر، هەمیشە بە . پاشان وەرگر بە یان لە سندووقەکە ڕایدەکێشێت.

The e-mail path from left to right under two bands, PUSH: SMTP and PULL: IMAP or POP3. Aram's mail app (MUA) sends with SMTP on port 587 or 465 with a login to smtp.a.example (MSA and MTA), which sends with SMTP on port 25 to mx.b.example (MTA, then MDA). The MDA puts the message into Shilan's mailbox, and Shilan's mail app (MUA) collects it with IMAP on 993 or POP3 on 995. A legend explains MUA = mail user agent, the e-mail client (Outlook, Thunderbird, Apple Mail, the Gmail app); MTA = mail transfer agent, which passes mail between mail servers with SMTP (Postfix, Exim, Exchange); MDA = mail delivery agent, which puts the message into the receiver's mailbox; and with webmail the browser talks HTTPS on 443 to the provider instead.ڕێگای ئیمەیڵ لە چەپەوە بۆ ڕاست لە ژێر دوو شریتدا، پاڵنان: SMTP و ڕاکێشان: IMAP یان POP3. ئەپی نامەی ئارام (MUA) بە SMTP لەسەر پۆرتی 587 یان 465 لەگەڵ چوونەژوورەوە دەنێرێت بۆ smtp.a.example (MSA و MTA)، کە بە SMTP لەسەر پۆرتی 25 دەینێرێت بۆ mx.b.example (MTA، پاشان MDA). MDA نامەکە دەخاتە سندووقی نامەی شیلان و ئەپی نامەی شیلان (MUA) بە IMAP لەسەر 993 یان POP3 لەسەر 995 وەریدەگرێت. ڕوونکردنەوەیەک دەڵێت MUA = بریکاری نامەی بەکارهێنەر، واتە بەرنامەی ئیمەیڵ (Outlook، Thunderbird، Apple Mail، ئەپی Gmail)؛ MTA = بریکاری گواستنەوەی نامە کە نامە لە نێوان ڕاژەکارەکانی ئیمەیڵدا بە SMTP دەگوازێتەوە (Postfix، Exim، Exchange)؛ MDA = بریکاری گەیاندنی نامە کە نامەکە دەخاتە سندووقی وەرگر؛ و بە ئیمەیڵی وێب، تۆڕگەڕ لە جیاتی ئەوە بە HTTPS لەسەر 443 قسە لەگەڵ دابینکەر دەکات.
SMTP pushes the message from server to server; IMAP or POP3 pulls it to the reader. نامەکە لە بۆ پاڵ دەنێت؛ یان بۆ خوێنەرەکەی ڕایدەکێشێت.CêIT

The same journey in five steps — with the submission server that checks your password, the DNS MX record and the “envelope” — is in How a message travels.

هەمان گەشت بە پێنج هەنگاو — لەگەڵ ئەو ناردن کە دەپشکنێت، و «زەرف» — لە نامەیەک چۆن دەگاتـدایە.

E-mail: push with SMTP, pull with POP3 or IMAPئیمەیڵ: پاڵنان بە SMTP، ڕاکێشان بە POP3 یان IMAP

MUA, MTA and MDA: the mail softwareMUA، MTA و MDA: نەرمەواڵەی نامە

Mail software has three short names. Each is a job, not a brand:

نامە سێ ناوی کورتی هەیە. هەریەکەیان کارێکە، نەک ناوی کۆمپانیایەک:

NameناوWhat it doesچی دەکاتExamples in 2026نموونە لە ⁦2026⁩ـدا
MUA — mail user agentMUA — بریکاری نامەی The e-mail client: writes, sends and shows mail.: نامە دەنووسێت، دەنێرێت و پیشانی دەدات.Outlook, Thunderbird, Apple Mail, the Gmail app
MTA — mail transfer agentMTA — بریکاری گواستنەوەی نامەReceives mail from the sender's MUA, passes it between mail servers with SMTP, and hands it to the MDA for final delivery.نامە لە MUAـی نێرەر وەردەگرێت، بە لە نێوان دەیگوازێتەوە و بۆ گەیاندنی کۆتایی دەیداتە MDA.Postfix, Exim, Sendmail, Microsoft Exchange Server
MDA — mail delivery agentMDA — بریکاری گەیاندنی نامەTakes the message from the last MTA and puts it into the receiver's mailbox, where the client collects it.نامەکە لە دوایین MTA وەردەگرێت و دەیخاتە سندووقی نامەی وەرگر، کە لەوێ وەریدەگرێت.procmail and maildrop on Unix; the delivery service of Dovecotprocmail و maildrop لەسەر Unix؛ خزمەتگوزاریی گەیاندنی Dovecot

So the short rule holds: SMTP forwards mail and POP3 or IMAP delivers it to the reader. Eudora and Netscape Messenger, the mail apps of the 1990s, are history — Eudora's development stopped in 2006.

کەواتە یاسا کورتەکە ڕاستە: نامە دەگوازێتەوە و یان دەیگەیەنێتە خوێنەر. Eudora و Netscape Messenger، نامەی ساڵانی نەوەدەکان، مێژوون — پەرەپێدانی Eudora لە ⁦2006⁩ـدا وەستا.

E-mail: push with SMTP, pull with POP3 or IMAPئیمەیڵ: پاڵنان بە SMTP، ڕاکێشان بە POP3 یان IMAP

SMTP: ports and encryptionSMTP: پۆرتەکان و شفرەکردن

SMTP, the Simple Mail Transfer Protocol, is the principal application-layer protocol of Internet mail. It always runs over TCP, never UDP, because a message must arrive whole and in order. It uses three ports, and each connection gets its encryption in a different way:

، Simple Mail Transfer Protocol، سەرەکیی . هەمیشە لەسەر کار دەکات، هەرگیز نا، چونکە نامە دەبێت تەواو و بە ڕیز بگات. سێ بەکار دەهێنێت و هەر پەیوەندییەک بە ڕێگایەکی جیاواز شفرە دەکرێت:

Three rows. Port 587, app to provider (submission): plain hello, then STARTTLS, then the login and the message encrypted — it starts in plain text, then upgrades. Port 465, app to provider (submission): encrypted from the first byte, login and message — implicit TLS, preferred since 2018 (RFC 8314). Port 25, server to server (relay): hello, STARTTLS if offered, then the message encrypted — no login, and TLS when both servers support it.سێ ڕیز. پۆرتی 587، ئەپ بۆ دابینکەر (ناردن): سڵاوی ئاشکرا، پاشان STARTTLS، پاشان چوونەژوورەوە و نامەکە بە شفرەکراوی — بە دەقی ئاشکرا دەست پێ دەکات، پاشان بەرز دەبێتەوە. پۆرتی 465، ئەپ بۆ دابینکەر (ناردن): لە یەکەم بایتەوە شفرەکراوە، چوونەژوورەوە و نامە — TLSـی ڕاستەوخۆ، لە 2018ـەوە باشترە (RFC 8314). پۆرتی 25، ڕاژەکار بۆ ڕاژەکار (گواستنەوە): سڵاو، STARTTLS ئەگەر هەبێت، پاشان نامەی شفرەکراو — بێ چوونەژوورەوە و TLS کاتێک هەردوو ڕاژەکارەکە پشتگیری دەکەن.
Submission needs a login and TLS; server-to-server relay uses STARTTLS when it can.ناردن و دەوێت؛ گواستنەوەی بۆ کاتێک بتوانێت STARTTLS بەکار دەهێنێت.CêIT

Port 25 is for relay between servers. Your app submits mail on 465, encrypted from the first byte, or on 587, which starts in plain text and switches to TLS with the STARTTLS command; both need your login, and since 2018 RFC 8314 prefers 465. Receiving servers also check the sender with SPF, DKIM and DMARC — see how receivers check senders.

⁦25⁩ بۆ گواستنەوە لە نێوان . نامە لەسەر ⁦465⁩ دەنێرێت، لە یەکەم شفرەکراو، یان لەسەر ⁦587⁩ کە بە دەست پێ دەکات و بە فەرمانی STARTTLS دەگۆڕێت بۆ ؛ هەردووکیان تۆیان دەوێت و ⁦RFC 8314⁩ لە ⁦2018⁩ـەوە ⁦465⁩ باشتر دەزانێت. وەرگریش نێرەر بە ، و دەپشکنن — بڕوانە وەرگرەکان چۆن نێرەر دەپشکنن.

E-mail: push with SMTP, pull with POP3 or IMAPئیمەیڵ: پاڵنان بە SMTP، ڕاکێشان بە POP3 یان IMAP

POP3 and IMAP: download or synchronisePOP3 و IMAP: دابارکردن یان هاوکاتکردن

To read a mailbox, the client uses a mail access protocol: POP3, IMAP — or HTTP, when you read webmail in a browser (today always HTTPS).

بۆ خوێندنەوەی سندووقی نامە، دەستگەیشتن بە نامە بەکار دەهێنێت: ، — یان ، کاتێک لە دەخوێنیتەوە (ئەمڕۆ هەمیشە ).

Two panels. POP3, port 110, with TLS 995: the mailbox on the server is empty after the download; the laptop has 3 messages and the phone is empty — mail lives on one device. IMAP, port 143, with TLS 993: the mailbox on the server keeps the folders Inbox (read), Work (2 new) and Sent with their read marks; the laptop and the phone are synchronised with it and show the same list — every device sees the same mailbox. A note says both are mail access protocols over TCP, and SMTP still does the sending.دوو بەش. POP3، پۆرتی 110، بە TLS 995: سندووقی سەر ڕاژەکار دوای دابارکردن بەتاڵە؛ لاپتۆپەکە 3 نامەی هەیە و مۆبایلەکە بەتاڵە — نامەکان لەسەر یەک ئامێر دەژین. IMAP، پۆرتی 143، بە TLS 993: سندووقی سەر ڕاژەکار فۆڵدەرەکانی Inbox (خوێندراوە)، Work (2 نوێ) و Sent لەگەڵ نیشانەی خوێندنەوەیان دەهێڵێتەوە؛ لاپتۆپەکە و مۆبایلەکە لەگەڵیدا هاوکات دەکرێن و هەمان لیست پیشان دەدەن — هەموو ئامێرێک هەمان سندووق دەبینێت. تێبینییەک دەڵێت هەردووکیان پرۆتۆکۆڵی دەستگەیشتن بە نامەن لەسەر TCP و ناردن هەر کاری SMTPـە.
POP3 moves the mail to one device; IMAP keeps one mailbox for all devices. نامەکان دەگوازێتەوە بۆ یەک ئامێر؛ یەک سندووق بۆ هەموو ئامێرەکان دەهێڵێتەوە.CêIT

POP3 (Post Office Protocol 3; port 110, with TLS 995) downloads the messages and usually deletes them from the server. IMAP (Internet Message Access Protocol; port 143, with TLS 993; today IMAP4rev2, RFC 9051 of 2021) keeps the mail on the server with folders and read marks, so phone and laptop show the same mailbox. Which to choose in everyday use is in POP3 or IMAP?

(⁦Post Office Protocol 3⁩؛ ⁦110⁩، بە ⁦995⁩) نامەکان دابار دەکات و زۆرجار لە دەیانسڕێتەوە. (Internet Message Access Protocol؛ ⁦143⁩، بە ⁦993⁩؛ ئەمڕۆ ⁦IMAP4rev2⁩، ⁦RFC 9051⁩ـی ساڵی ⁦2021⁩) نامەکان لەسەر لەگەڵ و نیشانەی خوێندنەوە دەهێڵێتەوە، بۆیە مۆبایل و هەمان سندووق پیشان دەدەن. لە بەکارهێنانی ڕۆژانەدا کامیان هەڵبژێریت لە POP3 یان IMAP؟ـدایە.

All the ports in one pictureهەموو پۆرتەکان لە یەک وێنەدا

Each protocol of this lesson has a well-known port for its plain version and a port (or STARTTLS) for its encrypted version. Today the encrypted column is the one to use. How ports and sockets work is in Ports and sockets.

هەر ئەم وانەیە بۆ وەشانە ئاشکراکەی هەیە و (یان STARTTLS) بۆ وەشانە شفرەکراوەکەی. ئەمڕۆ ستوونی شفرەکراو ئەوەیە کە بەکار دێت. و چۆن کار دەکەن لە پۆرتەکان و سۆکێتەکانـدایە.

A table card with the columns protocol, job, plain port and port with TLS. HTTP/HTTPS, the Web: 80, and 443 (TCP; HTTP/3 uses UDP). SMTP, mail between servers: 25, and STARTTLS on 25. SMTP submission, app sends to provider: 587, and 465 (or 587 with STARTTLS). POP3, download mail: 110 and 995. IMAP, keep and sync mail: 143 and 993. A note says all run over TCP except HTTP/3, which uses QUIC over UDP, and that the TLS column is the one to use today.کارتێکی خشتەیی بە ستوونەکانی پرۆتۆکۆڵ، کار، پۆرتی ئاشکرا و پۆرت بە TLS. HTTP/HTTPS، وێب: 80 و 443 (TCP؛ HTTP/3 UDP بەکار دەهێنێت). SMTP، نامە لە نێوان ڕاژەکارەکاندا: 25 و STARTTLS لەسەر 25. ناردنی SMTP، ئەپ بۆ دابینکەر دەنێرێت: 587 و 465 (یان 587 بە STARTTLS). POP3، دابارکردنی نامە: 110 و 995. IMAP، هێشتنەوە و هاوکاتکردنی نامە: 143 و 993. تێبینییەک دەڵێت هەموویان لەسەر TCP کار دەکەن جگە لە HTTP/3 کە QUIC لەسەر UDP بەکار دەهێنێت و ئەمڕۆ ستوونی TLS بەکار بهێنە.
Plain ports on the left, encrypted ones on the right — use the right column. ئاشکراکان لە چەپ، شفرەکراوەکان لە ڕاست — ستوونی ڕاست بەکار بهێنە.CêIT

Common mistakesهەڵە باوەکان

  • “HTTPS uses SSL.” HTTPS uses TLS 1.2 or 1.3. SSL 3.0 is forbidden (RFC 7568), and so are TLS 1.0 and 1.1 (RFC 8996).
  • “HTTPS works at the transport layer.” HTTPS is HTTP — an application-layer protocol — carried inside TLS, which sits between HTTP and TCP.
  • “HTTPS is much slower.” TLS 1.3 adds one round trip, and HTTP/3 none; since HTTP/2 and HTTP/3 come only with HTTPS, an HTTPS site is often the faster one.
  • https://…:80. The https scheme already means port 443; port 80 is for plain http.
  • “SMTP runs over UDP.” All mail protocols run over TCP: a message must arrive whole.
  • “POP3 sends mail.” POP3 and IMAP only read a mailbox; SMTP sends.
  • “A proxy can cache any website.” Only plain-HTTP objects; HTTPS objects are cached by the browser and by the CDN the site chooses.
  • “Web pages contain Java applets.” Applets are history: browsers dropped them and JDK 26 removed the Applet API.
  • « SSL بەکار دەهێنێت.» ⁦TLS 1.2⁩ یان ⁦1.3⁩ بەکار دەهێنێت. ⁦SSL 3.0⁩ قەدەغەیە ⁦(RFC 7568)⁩ و هەروەها ⁦TLS 1.0⁩ و ⁦1.1 (RFC 8996)⁩.
  • « لە کار دەکات.» هەمان — — کە لە ناو دەڕوات و لە نێوان و .
  • « زۆر خاوترە.» ⁦TLS 1.3⁩ یەک چوون و گەڕانەوە زیاد دەکات و ⁦HTTP/3⁩ هیچ؛ لەبەر ئەوەی ⁦HTTP/2⁩ و ⁦HTTP/3⁩ تەنیا لەگەڵ دێن، زۆرجار خێراترە.
  • https://…:80. شێوازی https خۆی واتە ⁦443⁩؛ ⁦80⁩ بۆ httpـی ئاساییە.
  • « لەسەر کار دەکات.» هەموو نامە لەسەر کار دەکەن: نامە دەبێت تەواو بگات.
  • « نامە دەنێرێت.» و تەنیا سندووقی نامە دەخوێننەوە؛ دەنێرێت.
  • « دەتوانێت کۆپیی هەر هەڵبگرێت.» تەنیا شتەکانی ئاسایی؛ کۆپیی شتەکانی لە و ئەو هەڵیدەبژێرێت هەڵدەگیرێن.
  • « Java appletـیان تێدایە.» applet مێژووە: لایانبردن و ⁦JDK 26 Applet API⁩ـی لابرد.

Exercisesڕاهێنانەکان

ExerciseڕاهێنانHomework: HTTP and HTTPSئەرکی ماڵەوە: HTTP و HTTPS

Differentiate between HTTP and HTTPS in a table with at least six rows.

لە خشتەیەکدا بە لانیکەم شەش ڕیز جیاوازیی نێوان و بکە.

Hintئاماژە

Name, URL, port, security, layer, speed.

ناو، ، ، پاراستن، چین، خێرایی.

Show answerوەڵامەکە پیشان بدە
CompareبەراوردHTTPHTTPS
NameناوHyperText Transfer ProtocolHyperText Transfer Protocol Secure
URLhttp://https://
Port80443
SecurityپاراستنNone; eavesdropping and changes are possibleهیچ؛ و گۆڕین دەکرێنTLS 1.2/1.3: encryption, integrity, the server proved by its certificate⁦TLS 1.2/1.3⁩: شفرەکردن، ، بە دەسەلمێنرێت
LayerچینApplicationApplication, inside TLS (between HTTP and TCP)، لە ناو (لە نێوان و )
SpeedخێراییNo TLS set-upبێ ئامادەکردنی One extra round trip with TLS 1.3; HTTP/2 and HTTP/3 only with HTTPSیەک چوون و گەڕانەوەی زیاتر بە ⁦TLS 1.3⁩؛ ⁦HTTP/2⁩ و ⁦HTTP/3⁩ تەنیا بە

Three slips to avoid in such an answer: writing SSL instead of TLS, saying that HTTPS works at the transport layer, and calling HTTPS “much slower”.

سێ هەڵە کە لەم وەڵامەدا خۆتیان لێ بپارێزە: نووسینی SSL لە جیاتی ، گوتنی ئەوەی لە کار دەکات و ناونانی بە «زۆر خاوتر».

ExerciseڕاهێنانA school proxyڕاژەکاری بریکاری قوتابخانە

30 students in a lab open the same plain-HTTP page, which has a 2 MB picture, through the school's proxy cache. The picture stays fresh all lesson. (a) How many times does the picture cross the school's Internet link? (b) How many megabytes does the cache save? (c) What changes if the site uses HTTPS?

⁦30⁩ قوتابی لە تاقیگەیەکدا هەمان ئاسایی دەکەنەوە کە وێنەیەکی ⁦2 MB⁩ـی تێدایە، لە ڕێگەی قوتابخانەوە. وێنەکە بە درێژایی وانەکە تازە دەمێنێتەوە. ⁦(a)⁩ وێنەکە چەند جار بە هێڵی قوتابخانەدا تێدەپەڕێت؟ ⁦(b)⁩ چەند مێگابایت پاشەکەوت دەکات؟ ⁦(c)⁩ ئەگەر بەکار بهێنێت چی دەگۆڕێت؟

Show answerوەڵامەکە پیشان بدە
  • (a) Once: the first request is a miss (steps 2b–5); the other 29 are answered from the cache (step 2a).
  • (b) 29 × 2 MB = 58 MB that never cross the Internet link.
  • (c) The proxy sees only encrypted bytes, so all 30 downloads (60 MB) cross the link; copies can only come from each browser's own cache or from the site's CDN.
  • ⁦(a)⁩ یەک جار: یەکەم کۆپیی نییە (هەنگاوەکانی ⁦2b–5⁩)؛ ⁦29⁩ـەکەی تر لە وەڵام دەدرێنەوە (هەنگاوی ⁦2a⁩).
  • ⁦(b) 29 × 2 MB = 58 MB⁩ کە هەرگیز بە هێڵی تێناپەڕن.
  • ⁦(c)⁩ تەنیا شفرەکراو دەبینێت، بۆیە هەر ⁦30⁩ ⁦(60 MB)⁩ بە هێڵەکەدا تێدەپەڕن؛ کۆپی تەنیا لە خودی هەر یان لە دێت.
ExerciseڕاهێنانSetting up a mail appڕێکخستنی ئەپێکی نامە

Karwan adds his university account to a mail app on his laptop and his phone. Choose the incoming protocol and port, and the outgoing port, for a safe set-up that keeps both devices the same.

کاروان هەژماری زانکۆکەی بۆ نامە لەسەر و مۆبایلەکەی زیاد دەکات. و هاتنە ژوورەوە و ناردن بۆ ڕێکخستنێکی سەلامەت هەڵبژێرە کە هەردوو ئامێرەکە وەک یەک بهێڵێتەوە.

Show answerوەڵامەکە پیشان بدە

Incoming: IMAP on 993 (TLS), so both devices see the same mailbox. Outgoing: SMTP submission on 465 (TLS from the first byte), or 587 with STARTTLS if the university offers only that — with his username and password. Never port 25 from a client, and never the plain ports 143 or 110.

هاتنە ژوورەوە: لەسەر ⁦993⁩ ()، بۆ ئەوەی هەردوو ئامێرەکە هەمان سندووق ببینن. ناردن: ناردنی لەسەر ⁦465⁩ ( لە یەکەم )، یان ⁦587⁩ بە STARTTLS ئەگەر زانکۆکە تەنیا ئەوەی هەبێت — بە ناوی و . هەرگیز ⁦25⁩ لە و هەرگیز ئاشکراکانی ⁦143⁩ یان ⁦110⁩ نا.

Review questionsپرسیارەکانی پێداچوونەوە
What is the user agent of the Web?بریکاری بەکارهێنەر بۆ وێب چییە؟

The web browser: it requests and shows pages and gives navigation and settings.

: داوا دەکات و پیشانیان دەدات و ئامرازی گەڕان و ڕێکخستن دەدات.

Which two TCP connections does a web cache use?کاشی وێب کام دوو پەیوەندیی TCP بەکار دەهێنێت؟

Browser ↔ cache, and cache ↔ origin server.

↔ و ↔ .

What does Cache-Control: max-age=3600 tell a cache?Cache-Control: max-age=3600 چی بە کاش دەڵێت؟

That the copy may be used for 3,600 seconds (one hour) without asking the origin again.

کە کۆپییەکە دەکرێت ⁦3,600⁩ چرکە (یەک کاتژمێر) بەکار بێت بێ ئەوەی دووپاتە لە بپرسرێت.

Which protocol and port does a mail server use to pass mail to another mail server?ڕاژەکاری ئیمەیڵ بۆ ناردنی نامە بۆ ڕاژەکاری ئیمەیڵێکی تر کام پرۆتۆکۆڵ و پۆرت بەکار دەهێنێت؟

SMTP on TCP port 25, with STARTTLS when both servers support it.

لەسەر ⁦25⁩ی ، بە STARTTLS کاتێک هەردوو پشتگیری دەکەن.

Summaryپوختە

  • HTTP: the browser (the user agent) requests, the web server responds; a page is many objects, each fetched with its own request; plain HTTP uses TCP port 80.
  • HTTPS = HTTP inside TLS on port 443: encrypted, protected against changes, the server proved by its certificate. TLS sits between HTTP and TCP; say TLS, never SSL.
  • The TLS 1.3 handshake (RFC 9846, 2026) adds one round trip after TCP; HTTP/2 multiplexes one TCP connection, HTTP/3 runs over QUIC on UDP 443.
  • A proxy server caches objects in five steps with two TCP connections; with HTTPS everywhere, copies now live in the browser cache and in CDNs.
  • E-mail: SMTP pushes (25 between servers, 465 or 587 from your app with a login); POP3 (110/995) downloads, IMAP (143/993) keeps and synchronises.
  • MUA = the mail app, MTA = moves mail between servers, MDA = delivers into the mailbox.
  • : (بریکاری ) داوا دەکات، وەڵام دەداتەوە؛ چەندین شتە و هەریەکە بە خۆی دەهێنرێت؛ ئاسایی ⁦80⁩ی بەکار دەهێنێت.
  • = لە ناو لەسەر ⁦443⁩: شفرەکراو، پارێزراو لە گۆڕین، بە دەسەلمێنرێت. لە نێوان و ؛ بڵێ ، هەرگیز SSL.
  • ⁦1.3⁩ (⁦RFC 9846⁩، ⁦2026⁩) دوای یەک چوون و گەڕانەوە زیاد دەکات؛ ⁦HTTP/2⁩ یەک پەیوەندیی بۆ چەندین بەکار دەهێنێت و ⁦HTTP/3⁩ لەسەر لە ⁦443⁩ی کار دەکات.
  • بە پێنج هەنگاو و دوو پەیوەندیی کۆپیی شتەکان هەڵدەگرێت؛ ئێستا کە لە هەموو شوێنێکە، کۆپییەکان لە و لە .
  • : پاڵ دەنێت (⁦25⁩ لە نێوان ، ⁦465⁩ یان ⁦587⁩ لە بە )؛ ⁦(110/995)⁩ داباریان دەکات، ⁦(143/993)⁩ دەیهێڵێتەوە و هاوکاتی دەکات.
  • MUA = نامە، MTA = نامە لە نێوان دەگوازێتەوە، MDA = دەیخاتە سندووقی نامەوە.

Lesson complete!وانەکە تەواو بوو!

Well done. Review the key terms, then go on to the next lesson.دەستخۆش. سەیرێکی زاراوە سەرەکییەکان بکەرەوە، پاشان بڕۆ بۆ وانەی داهاتوو.

Key termsزاراوە سەرەکییەکان

Next lessonوانەی داهاتوو

File Transfer and Remote Access: FTP, Telnet, SSH and RDPگواستنەوەی فایل و دەستڕاگەیشتن لە دوورەوە: FTP، Telnet، SSH و RDP

References and further readingسەرچاوەکان و خوێندنەوەی زیاتر

This lecture is a first edition. The Kurdish text and terminology are waiting for review by Kurdish IT teachers.ئەم وانەیە چاپی یەکەمە. دەقە کوردییەکە و زاراوەکانی چاوەڕێی پێداچوونەوەی مامۆستایانی کوردی بواری IT ن.

Appearanceڕووکار

Modeدۆخ
Styleشێواز
Coloursڕەنگەکان

Saved on this device only.تەنیا لەسەر ئەم ئامێرە پاشەکەوت دەکرێت.