HTTP Flashcards
HTTP Messages:
What is a client?
service requesters
HTTP Messages:
What is a server?
providers of a resource or service
HTTP Messages:
Which HTTP method does a browser issue to a web server when you visit a URL?
GET
HTTP Messages:
What three things are on the start-line of an HTTP request message?
a HTTP method (get, put, post)
a request target (a URL, path you’re sending to)
the HTTP version
HTTP Messages:
What three things are on the start-line of an HTTP response message?
The protocol version (usually HTTP 1.1)
A status code
A status text
HTTP Messages:
What are HTTP headers?
a way to give additional data about the message you’re currently sending
HTTP Messages:
Where would you go if you wanted to learn more about a specific HTTP header?
MDN
HTTP Messages:
Is a body required for a valid HTTP request or response message?
no
JavaScript Ajax:
What is AJAX?
it is a technique for loading data into part of a page without having to refresh the entire page
JavaScript Ajax:
What does the AJAX acronym stand for?
Asynchronous JavaScript and XML
JavaScript Ajax:
which object is built into the browser for making HTTP requests in JavaScript?
XMLHttpRequest() object
JavaScript Ajax:
What event is fired by XMLHttpRequest objects when they are finished loading the data from the server?
‘load’
JavaScript Ajax:
Bonus Question, An XMLHttpRequest object has an addEventListener() method just like DOM elements. How is it possible that they both share this functionality?
they’re both objects so they can use the prototype methods (addEventListener)