Welcome, my friends, in this lecture, you will learn about SCDP request in the previous lecture,
we've been learning about HTP response, so a client sends a request.
That's what we'll be learning in this.
Lecture and the service back back response, the response part we have already done before, you know,
a request and request can be a request, which is a simple request to get any resource like an adjustment
or like an image.
And it can be also a post request opposed to questions like sending a form or sending some data back
to the server and the server processes it and probably Idzik to a database or something like that.
There are other types of requests also, which you might want to know the names you should know, like
head space, but you don't need to know the details of any of this.
You need to know when you get request and post request.
So I would like to show you on the browser Watergate request question, of course, request looks like.
So let's go there.
Let's open the browser.
I'm opening Firefox.
In Firefox, you go for the website w w w dock at.
Nautical.
They did not come to.
Go to the site.
Now, just right, click on Inspect Element.
To books.
Click on any one, any one of them, you can click and you will get this particular note with those
kooky requests, response, everything.
And here in this park.
Best night.
OK, just press type.
And questioned again.
Gordon.
Two a.m..
I think I must have missed it here.
This estimate, click this, this, this this is two hundred students, which is OK, which means it's
a successful request.
It's a good request.
The method is that request.
OK, then we are asking you to get a file.
That's why I asked you to get the papers that a lot of them to get requests from this website, it's
reported.
So he asks for Gyamfi is being phased SDM and fires lots of different, different types of files it
asks for.
So as an admin response.
And just see the billboard, the billboard is actually a legitimate page, so that's sponsors coming
as an estimate.
What should the content might be?
It should be removed.
Let's see if that is true.
This Bonesetter's, this is the response under this point is going to content papers next SDM.
This was what I was talking about.
This is what we all just said.
When we make ourselves with a good method, we will take the million of next estimate and we can see
that this particular e-mail, which is being returned, has the content type of text estimate.
Now, let us look at Borst method for post method.
For post Mintern, you can go for.
I think we should be efficient, just be efficient.
Yeah, now we're getting success, successful post midterms, so let's see this.
Here, this is one successful post method, and its name is Jason.
Jason is basically a data guitar for Jason is JavaScript Object Annotations, which sends an object
notation as data to the server.
So the whole idea of post is that you send it back to the server from the client.
So you use it in those cases to let us check what the header says for content type, said Jason.
Yes, it says application.
Jason, this request and your request, instead of an incident of some kind of request, it says it's
showing their data.
This is the Jason.
So it's throwing the payload and it looks like some kind of Dubai based.
In JSON format, so this is actually some kind of data that is going to the server and in response.
We see that the responsibility also impacts on this thing, ambiguous on object.
So that's about Borst, so the government would get as well as Borst and how you can look at it in the
Gaza, mind you, 200 is the status is OK.
OK, let me just to successful.
I'm going to 241, which means no country will for 200, OK?
So we go back to the.
So what is actually a get request, a get request is a simple request to get a response from the set
of the resource can be anything from an entertainment file, a text file, an image, BMG, JPEG, anything.
It can be any kind of resource you want to get from the server.
You said you you send that, get the request, no request.
It doesn't send any data.
See it.
That is one case.
There are certain cases where you can send a little bit of data that a request also, but in most cases
as opposed to a post request, the gold standard can get to request.
Right.
So no.
Next is what is a strategic post request not to be processed.
Request is not a simple request like get request.
You're not asking to get a resource from a server instead of sending data user data.
It typically is a form that you're submitting or some other type of data that your data structure that
you're sending from your client server, maybe you want to save it in the database.
Right.
So for those purposes, you will use post checklist that are be methods.
Also, for most cases, you will use the post and get 98 percent of the time you will use post and get
methods.
But other methods that had this or delete options connect.
These are the other methods that are available.
You don't need to know these methods, how they work or you just need to focus on post and get.
So this was the lecture on HDB request.
I hope you had a good day.
I'll see you in the next lecture.
Thank you.