HTTP Flashcards

1
Q

HTTP Messages:
What is a client?

A

service requesters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

HTTP Messages:
What is a server?

A

providers of a resource or service

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

HTTP Messages:
Which HTTP method does a browser issue to a web server when you visit a URL?

A

GET

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

HTTP Messages:
What three things are on the start-line of an HTTP request message?

A

a HTTP method (get, put, post)
a request target (a URL, path you’re sending to)
the HTTP version

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

HTTP Messages:
What three things are on the start-line of an HTTP response message?

A

The protocol version (usually HTTP 1.1)
A status code
A status text

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

HTTP Messages:
What are HTTP headers?

A

a way to give additional data about the message you’re currently sending

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

HTTP Messages:
Where would you go if you wanted to learn more about a specific HTTP header?

A

MDN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

HTTP Messages:
Is a body required for a valid HTTP request or response message?

A

no

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

JavaScript Ajax:
What is AJAX?

A

it is a technique for loading data into part of a page without having to refresh the entire page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

JavaScript Ajax:
What does the AJAX acronym stand for?

A

Asynchronous JavaScript and XML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

JavaScript Ajax:
which object is built into the browser for making HTTP requests in JavaScript?

A

XMLHttpRequest() object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

JavaScript Ajax:
What event is fired by XMLHttpRequest objects when they are finished loading the data from the server?

A

‘load’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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?

A

they’re both objects so they can use the prototype methods (addEventListener)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly