Web Requests - HTTP Flashcards

HTTP Fundamentals

1
Q

What does HTTP stand for?

A

HyperText Transfer Protocol

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

What is the primary purpose of HTTP?

A

To access World Wide Web resources

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

What are the two main components of HTTP communication?

A

Client and server

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

What is the default port for HTTP communication?

A

Port 80

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

What does FQDN stand for?

A

Fully Qualified Domain Name

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

What is a URL?

A

Uniform Resource Locator

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

Fill in the blank: The main mandatory fields in a URL are the _______ and the _______.

A

[scheme], [host]

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

What is the role of a DNS server in HTTP requests?

A

To resolve the domain and return its IP address

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

What HTTP request is typically sent to access the root path?

A

GET request

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

What status code indicates a successful HTTP request?

A

200 OK

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

What tool is primarily used for sending web requests in web penetration testing?

A

cURL

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

What does the cURL command ‘curl -O [url]’ do?

A

Downloads a page and saves it using the remote file name

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

What does the ‘-s’ flag in cURL do?

A

Silent mode; suppresses output

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

True or False: cURL renders HTML, JavaScript, and CSS like a web browser.

A

False

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

What is the purpose of the ‘-i’ flag in cURL?

A

To include protocol response headers in the output

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

List the components of a URL and their descriptions.

A
  • Scheme: Identifies the protocol (http://, https://)
  • User Info: Optional credentials (admin:password@)
  • Host: Resource location (hostname or IP address)
  • Port: Communication port (:80)
  • Path: Resource path (/dashboard.php)
  • Query String: Parameters for requests (?login=true)
  • Fragments: Sections within the resource (#status)
17
Q

What command would you use to see all options available with cURL?

18
Q

What happens if no port is specified in a URL?

A

HTTP defaults to port 80 and HTTPS defaults to port 443

19
Q

Fill in the blank: The query string in a URL starts with a _______ and consists of a parameter and a value.

A

[question mark]

20
Q

What is the significance of the ‘index.html’ file in an HTTP request?

A

It is returned by the server when a request for the root path is received

21
Q

What does the command ‘curl -o [filename] [url]’ do?

A

Writes the output to a specified file instead of stdout

22
Q

What is the command to view the full cURL manual page?