HTTP & AJAX Flashcards
What is a client?
soemthign that is requesting something fomr somewhere else
What is a server?
provides data to the client that requested the information
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?
method, request target, http version
What three things are on the start-line of an HTTP response message?
version, status code, and description of status code
What are HTTP headers?
ways for the client and server to pass additional information with an HTTP request or response
Where would you go if you wanted to learn more about a specific HTTP Header?
mdn
Is a body required for a valid HTTP request or response message?
no
What is AJAX?
programming practice of building complex, dynamic webpages using a technology known as XMLHttpRequest
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?
load event
An XMLHttpRequest object has an addEventListener() method just like DOM elements. How is it possible that they both share this functionality?
They share the same prototype property. The event target prototype