HTTP Flashcards
What is a client?
A computer or program that relies on sending a request to another client or software that accesses a service made available by a server.
What is a server?
A computer or software that provides functionality for clients.
Which HTTP method does a browser issue to a web server when you visit a URL?
GET request
What three things are on the start-line of an HTTP request message?
An HTTP method (POST)
The request target (usually URL)
The HTTP version
What three things are on the start-line of an HTTP response message?
The protocol version (HTTP/1.1),
A status code (200)
A status text (describes the status code)
What are HTTP headers?
They let the client and server pass information with an HTTP request/response
Where would you go if you wanted to learn more about a specific HTTP Header?
httpie.io or mdn
Is a body required for a valid HTTP request or response message?
No
What is AJAX?
A programming practice that allows you to collect data to update parts of the DOM of an HTML page without needing a full page refresh.
What does the AJAX acronym stand for?
Asynchronous JavaScript and XML
Which object is built into the browser for making HTTP requests in JavaScript?
XMLHttpRequest
What event is fired by XMLHttpRequest objects when they are finished loading the data from the server?
A load event