Lecture 5 Flashcards

1
Q

What is HTTP?

A

HTTP (HyperText Transfer Protocol) is an application layer protocol used for transmitting hypermedia documents such as HTML pages over the internet. It is the foundation of data exchange on the Web and operates on a client-server model

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

What is the basic architecture of HTTP?

A

HTTP operates on a request/response protocol based on a client/server architecture where clients (e.g., web browsers) send requests to servers, and servers respond with the requested resources​

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

What are the basic features of HTTP communication?

A

Stateless Protocol: Each request from a client to the server is independent and unrelated to any previous request.
2. Client-Server Architecture: : HTTP operates in a client-server model, where clients (such as web browsers) send requests to servers (such as web servers) for resources, and servers respond with the requested resources.

  1. Request-Response Protocol: : Communication between the client and server occurs through a request-response cycle
  2. Text-based
  3. Methods: HTTP defines several request methods, also known as verbs, that indicate the action to be performed on a resource
  4. Status Codes
  5. Uniform Resource Identifiers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are HTTP methods and give examples?

A

HTTP methods specify the action to be performed on a resource. Common methods include GET (retrieve a resource), POST (submit data), PUT (update a resource), DELETE (remove a resource), and more​

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

What are HTTP status codes?

A

HTTP status codes are three-digit codes included in responses to indicate the outcome of a request. Examples include 200 (success), 404 (not found), and 500 (server error)​

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

What is a Uniform Resource Identifier (URI)?

A

A URI is used to identify resources on the web, consisting of a scheme (e.g., “http://”), a hostname (e.g., “example.com”), and a path (e.g., “/index.html”)​

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

What are java.net.URL and java.net.HttpURLConnection?

A

java.net.URL represents a Uniform Resource Locator and provides methods for creating and parsing URLs. java.net.HttpURLConnection extends URLConnection and provides functionality specific to HTTP connections, such as setting request methods and headers

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

What is the HTTP request-response model?

A

In the HTTP request-response model, a client sends a request (containing a method, headers, and an optional message body) to a server, and the server responds with a status code, headers, and the requested data (if applicable)

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

What are HTTP messages?

A

HTTP messages are the units of data exchanged in the HTTP protocol. They include requests (from clients to servers) and responses (from servers to clients), each consisting of a start line, headers, and an optional message body

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

What are some common uses of HTTP in Java?

A

Common uses include web scraping, API integration, building web services, data visualization, file upload/download, and real-time communication using protocols like WebSocket​

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

What is data encryption?

A

Data encryption is the process of converting data from a readable format to a scrambled piece of information to prevent unauthorized access during transmission. It applies to documents, files, messages, or any other form of communication over a network​

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

What are symmetric and asymmetric encryption?

A

Symmetric encryption uses the same key for encryption and decryption, while asymmetric encryption uses a pair of keys (public and private) where one key encrypts and the other decrypts the data

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

What is web scraping with Java using JSoup?

A

Web scraping with Java using JSoup involves fetching data from websites by sending HTTP requests to URLs and parsing the HTML content returned. JSoup is a Java library used for working with HTML and XML files

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

Why is data encryption important?

A

Data encryption ensures authentication, privacy, and security. It helps protect against data breaches and unauthorized access during data transmission and storage​

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

What is the AES encryption algorithm?

A

AES (Advanced Encryption Standard) is a symmetric encryption algorithm widely used for its efficiency and security, supporting key lengths of 128, 192, or 256 bits

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

What is the RSA encryption algorithm?

A

RSA (Rivest-Shamir-Adleman) is a widely-used asymmetric encryption algorithm for secure data transmission and digital signatures, based on the difficulty of factoring large prime numbers​​.

16
Q
A
17
Q

What is HTTP security

A

HTTP security refers to measures taken to protect communication between clients and servers from unauthorized access, data breaches, and other security threats.

18
Q
A