HTTP Flashcards
What is a client?
something requesting data from elsewhere
what is a server
a host that holds the data or service
software that provides data for a request
Which HTTP method does a browser issue to a web server when you visit a URL?
get
What three things are on the start-line of an HTTP request message?
HTTP METHOD, request target, HTTP VERSION
What three things are on the start-line of an HTTP response message?
HTTP VERSION, STATUS CODE, STATUS TEXT
What are HTTP headers
information about the HTTP, additional info
Where would you go if you wanted to learn more about a specific HTTP Header?
MDN documentation
Is a body required for a valid HTTP request or response message?
no
What is AJAX?
asyncrhonous javascript retrieve data for the user without having to navigate elsewhere
What does the AJAX acronym stand for?
asyncrhonous 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 event
An XMLHttpRequest object has an addEventListener() method just like DOM elements. How is it possible that they both share this functionality?
It is a prototype chain