HTTP/AJAX Flashcards
What is a client?
a service requestor - requests data from somewhere else
What is a server?
provider of a resource or service – piece of software that provides data to a request
What three things are on the start line of a HTTP request message?
- the protocall version
- a status code
- a status text
Which HTTP method does a browser issue to a web server?
Get
What are HTTP headers?
a way to provide additional information about a request or response that’s currently being sent
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?
AJAX allows you to request data from a server and load it without having to refresh the entire page
What does the AJAX acronym stand for ?
Asynchronous JavaScript And XML
What object is built into the browser for making HTTP requests in JavaScript?
XMLHttpRequest
What event is fired by the XMLHttpRequest objects when they finish 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?
They share a prototype
What is a client?
a piece of computer software that requests/accesses a service or data made available by a server
What is a server?
a piece of software that provides functionality/data for other programs called clients
Which HTTP methods does a browser issue to a web server when you visit a URL?
GET