HTTP Flashcards

1
Q

What are the most common HHTP Methods we will use ?

A

GET

POST

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

What does the GET Request do ?

A

This is used for getting information from a web server.

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

What does a POST Request do ?

A

This is used for submitting data to the web server and potentially creating new records

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

What does a PUT Request do ?

A

This is used for submitting data to a web server to update information

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

What does a DELETE Request do ?

A

This is used for deleting information/records from a web server.

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

What HHTP method would be used to update your email address?

A

PUT

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

What HHTP method would be used to create a new user account?

A

POST

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

What HTTP method would be used to remove a picture you’ve uploaded to your account?

A

DELETE

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

What HTTP method would be used to view a news article?

A

GET

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

What does URL stand for ?

A

Uniform Resource Locator

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

What are the different sections of a URL ?

A
Scheme
User
Host
Port
Path
Query String
Fragment
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which feature of a URL instructs on what protocol to use for accessing the resource such as HTTP, HTTPS, FTP (File Transfer Protocol).

A

Scheme

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

Some services require authentication to log in, what feature of a URL can you put a username and password into the URL to log in.

A

User

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

The domain name or IP address of the server you wish to access.

A

Host

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

What URL feature has the file name or location of the resource you are trying to access.

A

Path

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

Extra bits of information that can be sent to the requested path. For example, /blog?id=1 would tell the blog path that you wish to receive the blog article with the id of 1.

A

Query String

17
Q

This is a reference to a location on the actual page requested. This is commonly used for pages with long content and can have a certain part of the page directly linked to it, so it is viewable to the user as soon as they access the page.

A

Fragment

18
Q

HTTP Status code range 100 - 199

A

Information Response - tells the client the first part of their request has been accepted and they should continue sending the rest of their request

19
Q

HTTP Status range 200-299

A

Success- tells the client their request was successful.

20
Q

HTTP Status code range 300 - 399 ?

A

Redirection - redirects the client’s request to another resource. This can be either to a different webpage or a different website altogether.

21
Q

HTTP Status code range 400 - 499 ?

A

Client Errors - used to inform the client that there was an error with their request.

22
Q

HTTP Status code range 500 - 599 ?

A

Server Errors - reserved for errors happening on the server-side and usually indicate quite a major problem with the server handling the request.

23
Q

What response code might you receive if you’ve tried to access a page that doesn’t exist?

A

404 - page not found

24
Q

What response code might you receive if you try to edit your profile without logging in first?

A

401 - not authorised

25
Q

What response code might you receive if the web server cannot access its database and the application crashes?

A

503 - service unavailable

26
Q

HTTP Status code 200

A

OK - The request was completed successfully