§-Quick questions
NSWSoftware EngineeringModule 2: Programming for the Web
Quick questions on HTTP and HTTPS explained: HSC Software Engineering Module 2
4short Q&A pairs drawn directly from our worked dot-point answer. For full context and worked exam questions, read the parent dot-point page.
What is anatomy of an HTTP request?Show answer
Every HTTP request starts with a request line that names the method and path, then carries any number of headers, then optionally a body. The example below shows a POST request submitting a JSON payload.
What is anatomy of an HTTP response?Show answer
Every HTTP response starts with a status line that names the version, status code and a short reason phrase, then headers, then optionally a body. The example below shows a successful resource creation that returns the new resource as JSON.
What are headers?Show answer
Headers carry metadata. Useful examples:
What are hTTPS?Show answer
HTTPS is HTTP carried over TLS. It provides three guarantees:
Have a question we have not covered?
This dot-point answer is short enough that we have not extracted many short questions yet. Read the full dot-point answer or ask Mo, our study assistant, in the chat for follow ups.
