WEBVTT

00:00.260 --> 00:04.430
Hey, everyone, and welcome back to the Knowledge Pole Video series.

00:04.430 --> 00:12.530
So in today's lecture, we'll have a high level overview in various kind of request methods which are

00:12.530 --> 00:14.900
available for the Http protocol.

00:14.900 --> 00:22.700
Now, we have already discussed some of the request methods like get, post, trace, head, etcetera,

00:22.700 --> 00:25.670
so this will just be a overview lecture.

00:26.210 --> 00:33.590
Now we already discussed that whenever a communication needs to be happening between a client and a

00:33.590 --> 00:42.110
server in a very simple, plain English language, a client can request for a file called as documentary

00:42.350 --> 00:42.930
mp4 you.

00:43.130 --> 00:49.910
I want to watch documentary dot mp4 and the server will send the file.

00:49.910 --> 00:53.150
So this is a plain English based communication.

00:53.150 --> 01:02.990
When you change the language from English to the Http, then the client will send a get request, which

01:02.990 --> 01:07.790
basically means give me this file on documentary dot mp4.

01:07.790 --> 01:16.250
So it also specifies the file name and the server responds back with 200.

01:16.250 --> 01:16.730
Okay.

01:17.030 --> 01:25.820
Now, depending upon the nature of the request, this specific part is called as the request method

01:25.820 --> 01:28.040
or http request method.

01:28.040 --> 01:30.500
So this specific part will change.

01:30.500 --> 01:37.280
Like for example, if you are using a login form where you have to put a username and password, then

01:37.280 --> 01:39.260
you cannot really use get.

01:39.440 --> 01:49.040
Ideally, you should be using post or let's say for example, you just wants to you want to write some

01:49.040 --> 01:51.620
file to the server, then you need to use a put.

01:51.650 --> 01:56.840
If you want to delete, then there is a Http request method called as delete.

01:56.840 --> 02:03.270
So depending upon the kind of operations that you might want to perform, there are various request

02:03.270 --> 02:06.780
methods which are available in the Http protocol.

02:07.440 --> 02:15.090
So as a high level overview, these are some of the request methods that we will be using and these

02:15.090 --> 02:18.300
are some things which are used most commonly.

02:18.300 --> 02:21.360
Now get is something that we are already aware about.

02:21.360 --> 02:25.800
It is used to retrieve data from a server post.

02:26.040 --> 02:28.710
It is used to send input data to the server.

02:28.710 --> 02:36.750
So whenever there is a input form which we are presented with like a user username password or a search

02:36.750 --> 02:37.380
query.

02:37.380 --> 02:49.230
So those can use post head is exactly like get, but it only is used to find the headers of the response

02:49.230 --> 02:57.750
and the server does not send the actual response, but is also an interesting method which is used to

02:57.750 --> 03:01.550
write a document to the server.

03:01.550 --> 03:07.970
Delete as the name suggests, it basically deletes resources from the server options.

03:07.970 --> 03:14.810
Basically asks the server on which are the request methods which are supported from the server.

03:14.840 --> 03:23.600
Now we have already discussed that a web server can have a control on what type of Http request methods

03:23.600 --> 03:24.770
are allowed.

03:24.950 --> 03:30.230
Now, generally web server will not allow this specific method like delete for example.

03:30.230 --> 03:32.480
So delete method itself is not allowed.

03:32.480 --> 03:40.310
So depending upon the web server and the web server configuration, a system administrator can choose

03:40.310 --> 03:44.840
to allow or can choose to deny a request method.

03:44.840 --> 03:46.940
So this is very important to remember.

03:46.970 --> 03:49.280
Last but not least, trace.

03:49.670 --> 03:56.360
It basically echoes the received request from the web server we have discussed already discussed most

03:56.360 --> 03:57.110
of them.

03:57.110 --> 04:05.640
There are other Http request methods also present, like for example, connect and will not be able

04:05.640 --> 04:12.330
to discuss about all of them, but will surely be able to discuss about most of them, which are more

04:12.330 --> 04:14.610
important in day to day communication.

04:14.610 --> 04:15.960
So this is it.

04:15.960 --> 04:18.660
About the Http request method.

04:18.690 --> 04:24.330
One thing important to remember, just remember this term calls request method.

04:24.330 --> 04:32.580
So if tomorrow someone asks what is get, you should be able to say that the get is the request method.

04:33.150 --> 04:36.000
So this is it about this lecture.

04:36.030 --> 04:40.800
Go ahead and complete the lesson and I hope this has been informative for you.

04:40.800 --> 04:45.450
If you have any doubts, suggestions, questions, feel free to connect us at Twitter, Facebook or

04:45.450 --> 04:48.660
LinkedIn or email us at instructors at KP Labs.

04:49.200 --> 04:50.520
Thanks for watching.
