This lesson will conduct a quick overview of the difference between the post and get method of transmitting
form data this topic will be explained in much more detail in the p p section of the course as we mentioned
earlier in the course.
The h t put protocol facilitates communication between our web browser and server.
There are two types of methods that can be used to transmit data between a client and a server.
This includes the get in post method the get method request data from a specified resource the post
method submits data to be processed to a specified resource
when using the get method the name and value pairs from the form fields are sent in the you are else
stream.
As shown in this example here we can see the values contained in the F name and l name field are attached
to the end of the file name of our form.
Action.
Send DRP HP
the post method on the other hand sends the name and value pairs in the H TTP message body as shown
in this example.
Both the Post and get method have unique properties that are specific to each one will start with the
get method GET requests can be cash they remain in the browser history.
They should only be used to retrieve data they have length restrictions they should never be used when
transmitting sensitive data such as passwords and they can be bookmarked
the post method on the other hand has no restrictions on data length cannot be bookmarked does not remain
in browser history and the requests are never cached.