Using GET and POST
Understand the key differences between GET and POST methods when submitting form data in HTML. Learn when to use GET for retrieving data without side effects and POST for actions that change server states, including handling sensitive information securely. This lesson helps you grasp how to specify the method attribute and the implications for data visibility and privacy.
We'll cover the following...
Understanding usage of GET and POST
Sending the form data to the server like we did in Exercise: Visualizing form data has a big issue; it’s privacy. The content of the form is sent as part of the URL, which can be copied from the address line of the browser.
For example, when you copy the request belonging to the last image in the previous lesson:
📜NOTE: In the real URL there are no line breaks and indentations. Here I used them only for the sake of readability.
Here you can see my password strings! Even if you would use HTTPS, these passwords were part of the URL, so anyone could read it! HTTP and HTTPS ...