HTTP Flashcards
What is a client?
They request services from servers
Is a body required for a valid HTTP request or response message?
no
Where would you go if you wanted to learn more about a specific HTTP Header?
probably mdn
What are HTTP headers?
it specifies the request or response of the http message
What three things are on the start-line of an HTTP response message?
protocol version, A status code, A status text
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 that describes the action to be performed, request target, HTTP version
What is AJAX?
AJAX is a way for us to get data from servers
What does the AJAX acronym stand for?
asynchronous javascript and xhtml
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
Bonus Question: An XMLHttpRequest object has an addEventListener() method just like DOM elements. How is it possible that they both share this functionality?
prototype