HTTP and REST APIs

Lesson 06 · 10 min

URLs, DNS, and HTTPS

What an address is made of, and what happens before the first byte of a request leaves.

10 minLesson 6 of 9Practice includedAsk AI on any point

The URL https://shop.example:8443/books/7?lang=uk#reviews has parts: the scheme (https), host (shop.example), port (8443), path (/books/7), query (?lang=uk), and fragment (#reviews). Before sending a request, the client asks DNS for the host's IP, opens a TCP connection, and for https also negotiates encryption (TLS). The default port is 80 for http and 443 for https.

Sign in to continue

The rest of this lesson opens after sign up

The first lesson of every course is open without an account. To read on, solve the practice and use Ask, create a free account or log in.