Students will be able to understand what is meant by a Uniform Resource Locator (URL), describe its components, and explain how a web browser uses a URL to retrieve resources from the World‑Wide Web.
A Uniform Resource Locator (URL) is the address that uniquely identifies a resource—such as a web page, image, video, or API endpoint—on the Web. When you type a URL into a browser, the browser uses it to request the resource from the appropriate server and then displays the returned data.
| Component | Description |
|---|---|
| Protocol | Method used to retrieve the resource (e.g., http, https, ftp). |
| Domain name | Registered name of the server that hosts the resource (e.g., example.com). The www. prefix is optional. |
| Port (optional) | Numeric identifier for the specific service on the server. Default ports: 80 for HTTP, 443 for HTTPS. A non‑default port follows a colon, e.g. :8080. |
| Path | Location of the file or resource within the server’s directory structure, beginning with a forward slash (e.g. /folder/page.html). |
| Query string (optional) | Additional parameters sent to the server. Begins with ? and uses & to separate key‑value pairs (e.g. ?id=10&sort=asc). |
| Fragment identifier (optional) | Points to a specific part of the resource, such as a heading within a page. Begins with # (e.g. #section2). |
https://www.example.com:8080/articles/technology.html?id=42&lang=en#introduction
httpswww.example.com8080/articles/technology.htmlid=42&lang=en#introductionIdentify the six components of the following URL:
http://blog.school.edu:8080/resources/lesson.pdf?year=2025&type=pdf#page3
When a URL is entered, the browser follows these steps (summarised for IGCSE level):
GET) that includes the path and any query string.A web server is software (e.g., Apache, Nginx) running on a computer that:
200 OK, 404 Not Found), response headers, and the requested content.| Protocol | Default Port | Encryption? | Typical Use |
|---|---|---|---|
http |
80 | No – data is sent in plain text | Public information, non‑sensitive sites |
https |
443 | Yes – TLS/SSL encrypts the data | Login pages, e‑commerce, any personal data |
Web servers can send small pieces of data called cookies to a browser. Cookies are stored on the user’s device and automatically sent back with subsequent requests to the same domain.
Real‑world example: When you add items to an online store’s basket, a session cookie stores the IDs of those items so the basket remains intact as you move between pages.
URLs can be spoofed in phishing attacks (e.g., http://paypa1.com mimics paypal.com). Always verify that:
https for any site that asks for personal or payment information.http://blog.school.edu/articles?id=5.Create an account or Login to take a Quiz
Log in to suggest improvements to this note.
Your generous donation helps us continue providing free Cambridge IGCSE & A-Level resources, past papers, syllabus notes, revision questions, and high-quality online tutoring to students across Kenya.