TutorChase logo
Login
IB DP Computer Science HL Study Notes

C.1.2 Protocols and Standards

Protocols and standards are the pillars that sustain the framework of the Internet and the World Wide Web. They are the agreed-upon conventions that dictate how information is exchanged and processed across different systems, ensuring that the web remains a universally navigable and interoperable network. This segment examines the essential web elements which are fundamental to the Internet's functionality and efficiency.

HTTP (HyperText Transfer Protocol)

HTTP is the principal protocol used for transmitting web pages on the internet. It operates on a request-response model between clients and servers.

Characteristics of HTTP:

  • Stateless Nature: Every request is executed independently without any memory of prior interactions, simplifying server design.
  • Performance: Designed for quick retrieval of web resources.
  • Extensibility: New methods and headers can be introduced without affecting the existing infrastructure.

Purpose of HTTP:

Practice Questions

Take your grades to the next level!

UPGRADING TO PREMIUM UNLOCKS
AI Tutor
AI-powered study assistant
instant feedback and guidance
Predicted Papers
Examiner-style predicted papers
based on recent exam trends
Practice Questions
All exam practice questions
by topic for each subject
Study Notes
All detailed revision notes
written by expert teachers
Cheat Sheets
Quick revision summaries
perfect for last-minute review
Past Papers
Complete collection
of practice and past exam papers
Email
Password
Confirm Password
Already have an account?

FAQ

HTTP being a stateless protocol means that each request from a client to server is treated as an independent transaction that is unrelated to any previous requests. This simplifies the server design as it does not need to retain session information. However, many web applications require the ability to maintain user state across multiple requests. To manage state, web applications use mechanisms like cookies, sessions, and tokens. Cookies are small pieces of data stored on the client's computer and sent with requests to the server, which can track state information like login status. Sessions track user state on the server side, often with a reference stored in a user's cookie. Tokens, such as JWT (JSON Web Tokens), can also be used to maintain state and handle authentication and authorisation across requests.

XSLT (eXtensible Stylesheet Language Transformations) is used in XML applications to transform XML documents into other formats, like HTML, text files, or even other XML documents with different schema. The purpose of XSLT is to enable the manipulation of XML data into a form suitable for display or further processing. For example, XSLT can be used to transform XML data into HTML for display on a web page, ensuring that the underlying data can be presented in a user-friendly format. Yes, XSLT can be applied to formats other than HTML. It is a versatile tool that can produce a variety of output formats from XML, making it valuable for numerous applications where different document types are required.

JavaScript enhances interactivity on websites by enabling dynamic content updates, user interface animations, form validation, and much more without the need for full page reloads. It responds to user actions like clicks, form submissions, and keyboard events, allowing web developers to create rich, interactive experiences. Examples of JavaScript usage include interactive maps, animated 2D/3D graphics, scrolling video jukeboxes, and real-time content updates like stock tickers or news feeds. JavaScript can manipulate the Document Object Model (DOM), allowing for the creation of dynamic and responsive user interfaces that improve engagement and user experience.

XML (eXtensible Markup Language) is considered extensible because it allows developers to define their own tags and data structures. This flexibility enables the creation of custom data formats tailored to specific needs. In web development, this extensibility means that XML can be used to define, exchange, store, and display data across various applications and services. It allows different systems to communicate and share data in a consistent way, despite differences in underlying technology. This interoperability is beneficial for complex web applications that involve data transactions between multiple platforms, making XML a powerful tool for developers who need a customisable and versatile data exchange format.

A URL (Uniform Resource Locator) is a specific type of URI (Uniform Resource Identifier) that not only names a resource but also provides a means to locate it by describing its primary access mechanism, e.g., its network location. All URLs are URIs, but not all URIs are URLs. A URI can be a name, a locator, or both for an internet resource. For example, a URL like `https://www.example.com/index.html` locates an HTML page on the internet. In contrast, a URI could be a URL for locating it or a URN (Uniform Resource Name) like `urn:isbn:0451450523`, which names a resource (in this case, by an ISBN) without suggesting where or how to locate it.

Hire a tutor

Please fill out the form and we'll find a tutor for you.

1/2
Your details
Alternatively contact us via
WhatsApp, Phone Call, or Email