Using GET and POST
In this lesson, we will learn the usage of GET and POST.
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:
Press + to interact
http://localhost:8467/FormProcessor.aspx?salutation=mrval&fname=Istvan&lname=Novak&email=myemail%40mycompany.hu&membership=silver&login=istvan&pwd=secret&pwd2=secret&dev=on&csharp=on&comments=Surprise+me%21
📜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 provide a way to solve this ...