The Internet and the World Wide Web · Cambridge syllabus 5.1 · Lesson 2 of 2
URLs and Web Access
A URL is a text-based address for a web page. It can contain the protocol, the domain name and the name of the page or file. When a URL is entered, the DNS finds the IP address of the web server for that domain name, the browser requests the page from the server using HTTP or HTTPS, and the browser renders the HTML it receives. HTTPS is HTTP with the data encrypted using SSL.
By the end, you can
- Understand what a URL is.
- Identify the protocol, domain name and file name in a URL.
- Explain how a URL identifies a resource.
- Explain the purpose and functions of a web browser.
- Describe how a web page is located, retrieved and displayed, including the roles of IP addresses, the DNS, the web server and HTML.
- Recognise the role of web servers and clients.
- Describe the purpose and operation of HTTP.
- Describe the purpose and operation of HTTPS.
Uniform Resource Locators
A uniform resource locator is the address of a resource on the web. It says which protocol to use, which computer holds the resource, and where on that computer to find it.
A URL is a text-based address, so people can type and remember it instead of a number. Take https://www.example.co.uk/courses/physics.html. The protocol is https, which tells the browser how to make the request. The domain name is www.example.co.uk, which identifies the web server. The rest, courses/physics.html, is the web page or file name, with the folder it is in.
A domain name is for people; the network needs a numeric IP address. When a URL is entered, the browser asks a domain name server to look the name up and return the address, and only then can it connect. This is why a wrong DNS answer is dangerous — a user who typed the right name can be sent to the wrong server, which is exactly what pharming does.
Worth remembering
- A URL is a text-based address: protocol, domain name, then web page or file name.
- The domain name identifies the web server; the file name identifies the page.
- DNS translates the domain name into the IP address the network needs.
Web technologies
A web browser is the program that finds web pages and displays them. Its main purpose is to render HTML, hypertext markup language, which is the code a web page is written in, and so display the page on the screen.
Browsers have other functions too, and the syllabus lists them: storing bookmarks and favourites, recording the user’s history, allowing the use of multiple tabs, storing cookies, providing navigation tools such as back, forward and refresh, and providing an address bar where a URL is typed.
The sequence for finding and showing one page is worth knowing in order. The user enters a URL in the address bar. The browser sends the domain name to a domain name server (DNS), which finds the matching IP address and sends it back. The browser uses that IP address to send a request to the web server that holds the page. The web server sends back the page’s HTML and other files. The browser renders the HTML and displays the page.
The essential relationship is that the browser, the client, asks and the web server answers. If the DNS cannot find the domain name, the browser shows an error, because without an IP address it does not know where to send the request.
Worth remembering
- A browser’s main purpose is to render HTML and display web pages.
- Functions: bookmarks, history, tabs, cookies, navigation tools, address bar.
- URL, then DNS returns the IP address, then a request to the web server, then HTML rendered.
HTTP and HTTPS
A protocol is a set of rules for how data is sent. HTTP, hypertext transfer protocol, is the set of rules a browser and a web server use to request and send web pages. The browser sends an HTTP request for a page, and the web server sends the page back in an HTTP response.
HTTP sends the data as it is, so anyone who intercepts it can read it. That is fine for a page of news, but not for a password or a card number.
HTTPS, hypertext transfer protocol secure, is HTTP with the data encrypted, using the SSL security protocol. Before any page is sent, the browser checks that the web server is genuine, and the two set up an encrypted connection; after that, everything sent in either direction is encrypted, so an intercepted request or page cannot be understood.
A browser shows that a page uses HTTPS with https at the start of the URL and usually a padlock symbol. Any page that asks for a login, personal details or payment should use HTTPS. It protects the data on its way; it does not prove that the website itself is honest, which is why checking the URL still matters.
Worth remembering
- HTTP is the set of rules for requesting and sending web pages.
- HTTPS is HTTP with the data encrypted, using SSL.
- Use HTTPS whenever personal or payment details are sent.
Worked example
In https://www.example.com/lessons/index.html, https is the protocol, www.example.com is the domain name and lessons/index.html is the file name.
Practice
Warm-up · not marked
Check your understanding
Answer in your own words, then compare with the worked answer. Nothing here is saved or scored.
Worked answer
It resolves the host name to a network address used to contact the server.
Check your method, units and explanation against it.
Marked practice
Set 1 of 5 · easiest first · Checked as you go, with the worked answer. Sign in or create a free account to save your progress.