HTTP Flashcards
What is a client?
The initiator that request
What is a server?
The software that return the service asked
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 version, method, request target
What three things are on the start-line of an HTTP response message?
Protocol version, status code, status text
What are HTTP headers?
more info describe the request or respond of data
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, updated in real time without refreshing
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 have shared prototype