Web protocols

HSC Software Engineering · Unit 2: Programming for the web

Web protocols notes

Fact-checked by a second, independent AI review.

An overview of web protocols basics students must know for Programming for the Web, including HTTP/HTTPS, DNS, TCP/IP, TLS, and the request–response model, with exam-style prompts.

HTTP/HTTPS (Hypertext Transfer Protocol Secure)
HTTP is the stateless client–server protocol used for web requests; HTTPS adds TLS to encrypt data in transit.
DNS (Domain Name System)
DNS translates domain names to IP addresses so browsers can locate web servers.
TCP/IP and the Request–Response Cycle
TCP/IP provides reliable delivery; HTTP uses a request–response cycle between client and server to fetch resources.
TLS/SSL and Certificates
TLS encrypts HTTP traffic; certificates verify server identity and enable secure communication.
Common Status Codes & Headers
Status codes (e.g., 200, 301, 404, 500) indicate result of requests; headers convey metadata like content type and caching.

Remember it: “HTTPS is the lock; DNS is the map; TLS is the shield; status codes tell the tale.”

Exam tip: Markers look for clear definitions of each protocol, the client–server model, the importance of stateless requests, and how encryption and DNS underpin secure web interactions; include typical exam prompts on explaining, comparing, and giving examples.

Syllabus checklist

  • Web protocols: core ideas
  • Terms and typical exam questions for "Programming for the web" in NSW HSC Software Engineering

Practice questions

  1. 1. Which protocol is used to request a web page from a server?

    Answer checked

    Show answer

    Answer: HTTP. HTTP is the protocol for requesting and transferring web pages.

  2. 2. HTTPS adds encryption to HTTP using TLS. (True or False)

    Answer checked

    Show answer

    Answer: True. TLS encrypts HTTP traffic to provide confidentiality and integrity.

  3. 3. The protocol that transfers web resources using URLs is called ____.

    Answer checked

    Show answer

    Answer: HTTP. HTTP is the protocol used for transferring web resources identified by URLs.

  4. 4. In an HTTP/1.1 request, what is the path requested by GET /index.html HTTP/1.1?

    Answer checked

    Show answer

    Answer: /index.html. The requested resource path is /index.html.

  5. 5. What is the default port for HTTPS connections?

    Answer checked

    Show answer

    Answer: 443. HTTPS runs by default on port 443.

Practise web protocols as a game

Hearts, combos, streaks and an AI tutor that explains every answer. Start free.

Start free

More from Unit 2: Programming for the web