HTTP Flashcards
(7 cards)
1
Q
Name the parts of a URL:
https://username:password@tryhackme.com:80/viewroom?id=1#task3
A
1) https: scheme
2) username:password: user
3) tryhackme.com: host/domain
4) :80: port
5) /viewroom: path
6) ?id=1: query string
7) #task3: fragment (location on page)
2
Q
What is a GET request?
A
Gets info from a web server
3
Q
What is a POST request?
A
Used for submitting data to the server and potentially creating new records.
4
Q
What is a PUT request?
A
Used for submitting data to a web server to update information.
5
Q
What is a DELETE request?
A
Used for deleting info/records from a web server.
6
Q
What are the 5 levels of HTTP status codes?
A
100: Information response
200: Success
300: Redirection
400: Client errors
500: Server errors
7
Q
A