1
00:00:00,210 --> 00:00:06,300
This lesson will conduct a quick overview of the difference between the post and get method of transmitting

2
00:00:06,300 --> 00:00:15,960
form data this topic will be explained in much more detail in the p p section of the course as we mentioned

3
00:00:15,990 --> 00:00:17,140
earlier in the course.

4
00:00:17,190 --> 00:00:23,960
The h t put protocol facilitates communication between our web browser and server.

5
00:00:24,010 --> 00:00:29,680
There are two types of methods that can be used to transmit data between a client and a server.

6
00:00:29,680 --> 00:00:38,230
This includes the get in post method the get method request data from a specified resource the post

7
00:00:38,230 --> 00:00:42,430
method submits data to be processed to a specified resource

8
00:00:45,320 --> 00:00:51,650
when using the get method the name and value pairs from the form fields are sent in the you are else

9
00:00:51,660 --> 00:00:52,320
stream.

10
00:00:52,400 --> 00:01:01,090
As shown in this example here we can see the values contained in the F name and l name field are attached

11
00:01:01,090 --> 00:01:03,990
to the end of the file name of our form.

12
00:01:04,000 --> 00:01:04,870
Action.

13
00:01:05,080 --> 00:01:06,490
Send DRP HP

14
00:01:10,040 --> 00:01:17,300
the post method on the other hand sends the name and value pairs in the H TTP message body as shown

15
00:01:17,300 --> 00:01:18,200
in this example.

16
00:01:23,660 --> 00:01:30,230
Both the Post and get method have unique properties that are specific to each one will start with the

17
00:01:30,230 --> 00:01:38,010
get method GET requests can be cash they remain in the browser history.

18
00:01:38,010 --> 00:01:45,260
They should only be used to retrieve data they have length restrictions they should never be used when

19
00:01:45,290 --> 00:01:50,300
transmitting sensitive data such as passwords and they can be bookmarked

20
00:01:53,530 --> 00:02:01,560
the post method on the other hand has no restrictions on data length cannot be bookmarked does not remain

21
00:02:01,560 --> 00:02:05,340
in browser history and the requests are never cached.
