1 00:00:00,240 --> 00:00:07,050 Welcome, my friends, in this lecture, you will learn about SCDP request in the previous lecture, 2 00:00:07,140 --> 00:00:12,630 we've been learning about HTP response, so a client sends a request. 3 00:00:13,080 --> 00:00:14,700 That's what we'll be learning in this. 4 00:00:15,730 --> 00:00:22,470 Lecture and the service back back response, the response part we have already done before, you know, 5 00:00:22,540 --> 00:00:30,070 a request and request can be a request, which is a simple request to get any resource like an adjustment 6 00:00:30,460 --> 00:00:31,750 or like an image. 7 00:00:32,530 --> 00:00:39,280 And it can be also a post request opposed to questions like sending a form or sending some data back 8 00:00:39,280 --> 00:00:46,720 to the server and the server processes it and probably Idzik to a database or something like that. 9 00:00:47,170 --> 00:00:52,300 There are other types of requests also, which you might want to know the names you should know, like 10 00:00:52,300 --> 00:00:55,900 head space, but you don't need to know the details of any of this. 11 00:00:56,170 --> 00:00:59,260 You need to know when you get request and post request. 12 00:00:59,800 --> 00:01:04,540 So I would like to show you on the browser Watergate request question, of course, request looks like. 13 00:01:05,690 --> 00:01:06,520 So let's go there. 14 00:01:07,770 --> 00:01:08,890 Let's open the browser. 15 00:01:09,040 --> 00:01:10,390 I'm opening Firefox. 16 00:01:12,750 --> 00:01:17,490 In Firefox, you go for the website w w w dock at. 17 00:01:19,070 --> 00:01:19,660 Nautical. 18 00:01:21,150 --> 00:01:22,250 They did not come to. 19 00:01:23,370 --> 00:01:24,180 Go to the site. 20 00:01:29,770 --> 00:01:33,280 Now, just right, click on Inspect Element. 21 00:01:37,210 --> 00:01:37,950 To books. 22 00:01:52,430 --> 00:01:58,760 Click on any one, any one of them, you can click and you will get this particular note with those 23 00:01:58,760 --> 00:02:01,110 kooky requests, response, everything. 24 00:02:01,940 --> 00:02:04,220 And here in this park. 25 00:02:06,000 --> 00:02:06,750 Best night. 26 00:02:09,550 --> 00:02:11,140 OK, just press type. 27 00:02:12,280 --> 00:02:14,920 And questioned again. 28 00:02:20,910 --> 00:02:21,450 Gordon. 29 00:02:22,190 --> 00:02:23,580 Two a.m.. 30 00:02:30,110 --> 00:02:32,200 I think I must have missed it here. 31 00:02:33,450 --> 00:02:39,870 This estimate, click this, this, this this is two hundred students, which is OK, which means it's 32 00:02:39,870 --> 00:02:41,730 a successful request. 33 00:02:41,970 --> 00:02:43,020 It's a good request. 34 00:02:43,020 --> 00:02:44,570 The method is that request. 35 00:02:45,120 --> 00:02:49,130 OK, then we are asking you to get a file. 36 00:02:49,260 --> 00:02:54,230 That's why I asked you to get the papers that a lot of them to get requests from this website, it's 37 00:02:54,240 --> 00:02:54,810 reported. 38 00:02:55,170 --> 00:03:01,920 So he asks for Gyamfi is being phased SDM and fires lots of different, different types of files it 39 00:03:01,920 --> 00:03:02,590 asks for. 40 00:03:03,340 --> 00:03:06,450 So as an admin response. 41 00:03:07,900 --> 00:03:14,650 And just see the billboard, the billboard is actually a legitimate page, so that's sponsors coming 42 00:03:14,660 --> 00:03:15,780 as an estimate. 43 00:03:16,360 --> 00:03:19,300 What should the content might be? 44 00:03:19,780 --> 00:03:20,890 It should be removed. 45 00:03:21,220 --> 00:03:22,420 Let's see if that is true. 46 00:03:23,320 --> 00:03:29,740 This Bonesetter's, this is the response under this point is going to content papers next SDM. 47 00:03:30,040 --> 00:03:31,530 This was what I was talking about. 48 00:03:32,050 --> 00:03:33,550 This is what we all just said. 49 00:03:33,550 --> 00:03:40,090 When we make ourselves with a good method, we will take the million of next estimate and we can see 50 00:03:40,090 --> 00:03:45,910 that this particular e-mail, which is being returned, has the content type of text estimate. 51 00:03:46,870 --> 00:03:50,740 Now, let us look at Borst method for post method. 52 00:03:52,650 --> 00:03:55,140 For post Mintern, you can go for. 53 00:03:59,180 --> 00:04:02,510 I think we should be efficient, just be efficient. 54 00:04:16,290 --> 00:04:21,780 Yeah, now we're getting success, successful post midterms, so let's see this. 55 00:04:40,540 --> 00:04:47,000 Here, this is one successful post method, and its name is Jason. 56 00:04:47,350 --> 00:04:54,070 Jason is basically a data guitar for Jason is JavaScript Object Annotations, which sends an object 57 00:04:54,070 --> 00:04:57,120 notation as data to the server. 58 00:04:57,460 --> 00:05:03,590 So the whole idea of post is that you send it back to the server from the client. 59 00:05:03,910 --> 00:05:09,940 So you use it in those cases to let us check what the header says for content type, said Jason. 60 00:05:11,110 --> 00:05:12,750 Yes, it says application. 61 00:05:12,760 --> 00:05:22,440 Jason, this request and your request, instead of an incident of some kind of request, it says it's 62 00:05:22,450 --> 00:05:23,320 showing their data. 63 00:05:24,400 --> 00:05:25,320 This is the Jason. 64 00:05:26,350 --> 00:05:29,900 So it's throwing the payload and it looks like some kind of Dubai based. 65 00:05:31,850 --> 00:05:39,770 In JSON format, so this is actually some kind of data that is going to the server and in response. 66 00:05:41,500 --> 00:05:48,820 We see that the responsibility also impacts on this thing, ambiguous on object. 67 00:05:49,910 --> 00:05:56,720 So that's about Borst, so the government would get as well as Borst and how you can look at it in the 68 00:05:57,530 --> 00:06:02,810 Gaza, mind you, 200 is the status is OK. 69 00:06:03,410 --> 00:06:04,900 OK, let me just to successful. 70 00:06:05,000 --> 00:06:09,710 I'm going to 241, which means no country will for 200, OK? 71 00:06:11,770 --> 00:06:12,790 So we go back to the. 72 00:06:18,810 --> 00:06:24,210 So what is actually a get request, a get request is a simple request to get a response from the set 73 00:06:24,210 --> 00:06:31,980 of the resource can be anything from an entertainment file, a text file, an image, BMG, JPEG, anything. 74 00:06:31,980 --> 00:06:35,280 It can be any kind of resource you want to get from the server. 75 00:06:35,440 --> 00:06:39,880 You said you you send that, get the request, no request. 76 00:06:40,030 --> 00:06:41,370 It doesn't send any data. 77 00:06:41,610 --> 00:06:41,940 See it. 78 00:06:42,180 --> 00:06:43,200 That is one case. 79 00:06:43,200 --> 00:06:50,190 There are certain cases where you can send a little bit of data that a request also, but in most cases 80 00:06:50,190 --> 00:06:54,450 as opposed to a post request, the gold standard can get to request. 81 00:06:55,140 --> 00:06:55,460 Right. 82 00:06:55,980 --> 00:06:56,420 So no. 83 00:06:56,460 --> 00:07:00,390 Next is what is a strategic post request not to be processed. 84 00:07:00,390 --> 00:07:03,360 Request is not a simple request like get request. 85 00:07:03,880 --> 00:07:09,690 You're not asking to get a resource from a server instead of sending data user data. 86 00:07:10,260 --> 00:07:15,780 It typically is a form that you're submitting or some other type of data that your data structure that 87 00:07:15,780 --> 00:07:20,400 you're sending from your client server, maybe you want to save it in the database. 88 00:07:20,950 --> 00:07:21,260 Right. 89 00:07:21,450 --> 00:07:26,970 So for those purposes, you will use post checklist that are be methods. 90 00:07:26,970 --> 00:07:34,230 Also, for most cases, you will use the post and get 98 percent of the time you will use post and get 91 00:07:34,230 --> 00:07:34,740 methods. 92 00:07:35,490 --> 00:07:39,150 But other methods that had this or delete options connect. 93 00:07:39,390 --> 00:07:41,750 These are the other methods that are available. 94 00:07:42,150 --> 00:07:46,920 You don't need to know these methods, how they work or you just need to focus on post and get. 95 00:07:47,940 --> 00:07:51,420 So this was the lecture on HDB request. 96 00:07:52,180 --> 00:07:53,330 I hope you had a good day. 97 00:07:53,760 --> 00:07:55,350 I'll see you in the next lecture. 98 00:07:55,590 --> 00:07:56,010 Thank you.