HTTP Flashcards
What is a client?
a client is a piece of computer hardware or software that accesses a service made available by a server as part of the client–server model of computer networks.
What is a server?
a server is a piece of computer hardware or software (computer program) that provides functionality for other programs or devices, called “clients”.
Which HTTP method does a browser issue to a web server when you visit a URL?
get method
What three things are on the start-line of an HTTP request message?
method, destination, version
What three things are on the start-line of an HTTP response message?
version, status and status text.
What are HTTP headers?
HTTP headers let the client and the server pass additional information with an HTTP request or response. An HTTP header consists of its case-insensitive name followed by a colon (:), then by its value. Whitespace before the value is ignored. meta data
Where would you go if you wanted to learn more about a specific HTTP Header?
mdn & httppie docs
Is a body required for a valid HTTP request or response message?
it’s optional
What is AJAX?
web development techniques that uses various web technologies on the client-side to create asynchronous web applications.
what does ajax stand for
async 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?
load
An XMLHttpRequest object has an addEventListener() method just like DOM elements. How is it possible that they both share this functionality?
share a prototype