HTTP Flashcards

1
Q

At a high level, describe how the web works.

A

1) The web browser sends an HTTP request.
2) HTTP server interrogates the request and decides which HTML to produce.
3) HTTP server fetches the required data from a database.
4) HTTP server merges the data into the HTML and returns it to the web browser as an HTTP response.

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

What are the parts of a HTTP request? How about a response?

A

1) The client sends a request to the server
2) The server passes the request to the database
3) The database checks to see if it contains the requsted information
4) The database will return either a success or failure response code to the server
5) The server then passes that that response back to the client, to be displayed in some way on-screen.

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

What is an HTTP status code? Name a good one.

A

404 - Not found

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

What is a server telling me when it returns a status code between 300 - 399?

A

Redirection. The request hasn’t failed, but the client must use a different approach.

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

Name at least one web server.

A

Apache Tomcat

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

True or false?: TCP/IP is a text-based protocol.

A

False, Transmission Control Protocol) is a binary protocol.

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

True or false?: HTTP 1.1 is a text-based protocol.

A

True

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

True or false?: a URL’s path must map to a physical file on the server.

A

Always present but not always visible.

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

Where does caching happen with HTTP?

A

GET

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

What is a cookie?

A

Cookies are files created by websites you visit. They make your online experience easier by saving browsing information. With cookies, sites can keep you signed in, remember your site preferences, and give you locally relevant content.

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

What is JDBC?

A

Java Database Connectivity (JDBC) API is a Java library that standardizes database access. It turns any Java application into a database client.

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

What is an API?

A

API stands for Application Programming Interface. Essentially, they function as a junction between the client-side and server-side. Think of APIs as an electrical outlet: The power cord from your computer is the client, while the electrical grid behind the wall is the server. APIs allow the client to access all of the hard work done in the server without having to know what exactly the server is doing. So, in our example, the power cord doesn’t need to know all of the electrical grid information, it just needs to know where to connect to get the electricity it needs.

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