Recall & Review
beginner
What is a GET request?
A GET request asks a server to send data to you. It is like asking for information without changing anything on the server.
Click to reveal answer
beginner
What is a POST request?
A POST request sends data to a server to create or update something. It is like submitting a form or sending information to be saved.
Click to reveal answer
beginner
When should you use a GET request instead of POST?
Use GET when you want to get or read data without changing anything. For example, loading a webpage or searching for information.
Click to reveal answer
intermediate
Why should sensitive data not be sent with GET requests?
GET requests show data in the URL, which can be seen by others or saved in history. Sensitive data should be sent with POST to keep it hidden.
Click to reveal answer
intermediate
How do GET and POST requests differ in how they send data?
GET sends data in the URL as parameters, while POST sends data inside the request body, which is not visible in the URL.
Click to reveal answer
Which HTTP method is used to retrieve data without changing it?
✗ Incorrect
GET requests are used to get or read data without making changes.
Which request method sends data inside the request body?
✗ Incorrect
POST requests send data inside the request body, keeping it hidden from the URL.
Why is it not safe to send passwords using GET requests?
✗ Incorrect
GET requests include data in the URL, which can be seen or saved, risking exposure of sensitive information.
Which method would you use to submit a form with user information?
✗ Incorrect
POST is used to send data to the server, such as form submissions.
What happens when you use a GET request in a web browser?
✗ Incorrect
GET requests ask the server to send data, like loading a webpage.
Explain the difference between GET and POST requests in simple terms.
Think about when you want to just look at information versus when you want to send information.
You got /4 concepts.
Describe a real-life example where you would use a POST request instead of GET.
Think about when you fill out a form online and press submit.
You got /4 concepts.