Hey, everyone, and welcome back to the Knowledge Pole Video series.
So in today's lecture, we'll have a high level overview in various kind of request methods which are
available for the Http protocol.
Now, we have already discussed some of the request methods like get, post, trace, head, etcetera,
so this will just be a overview lecture.
Now we already discussed that whenever a communication needs to be happening between a client and a
server in a very simple, plain English language, a client can request for a file called as documentary
mp4 you.
I want to watch documentary dot mp4 and the server will send the file.
So this is a plain English based communication.
When you change the language from English to the Http, then the client will send a get request, which
basically means give me this file on documentary dot mp4.
So it also specifies the file name and the server responds back with 200.
Okay.
Now, depending upon the nature of the request, this specific part is called as the request method
or http request method.
So this specific part will change.
Like for example, if you are using a login form where you have to put a username and password, then
you cannot really use get.
Ideally, you should be using post or let's say for example, you just wants to you want to write some
file to the server, then you need to use a put.
If you want to delete, then there is a Http request method called as delete.
So depending upon the kind of operations that you might want to perform, there are various request
methods which are available in the Http protocol.
So as a high level overview, these are some of the request methods that we will be using and these
are some things which are used most commonly.
Now get is something that we are already aware about.
It is used to retrieve data from a server post.
It is used to send input data to the server.
So whenever there is a input form which we are presented with like a user username password or a search
query.
So those can use post head is exactly like get, but it only is used to find the headers of the response
and the server does not send the actual response, but is also an interesting method which is used to
write a document to the server.
Delete as the name suggests, it basically deletes resources from the server options.
Basically asks the server on which are the request methods which are supported from the server.
Now we have already discussed that a web server can have a control on what type of Http request methods
are allowed.
Now, generally web server will not allow this specific method like delete for example.
So delete method itself is not allowed.
So depending upon the web server and the web server configuration, a system administrator can choose
to allow or can choose to deny a request method.
So this is very important to remember.
Last but not least, trace.
It basically echoes the received request from the web server we have discussed already discussed most
of them.
There are other Http request methods also present, like for example, connect and will not be able
to discuss about all of them, but will surely be able to discuss about most of them, which are more
important in day to day communication.
So this is it.
About the Http request method.
One thing important to remember, just remember this term calls request method.
So if tomorrow someone asks what is get, you should be able to say that the get is the request method.
So this is it about this lecture.
Go ahead and complete the lesson and I hope this has been informative for you.
If you have any doubts, suggestions, questions, feel free to connect us at Twitter, Facebook or
LinkedIn or email us at instructors at KP Labs.
Thanks for watching.