When to use HTTP GET vs POST?

  Рет қаралды 31,276

Hussein Nasser

Hussein Nasser

Күн бұрын

Пікірлер: 42
@pattonjapes9614
@pattonjapes9614 4 жыл бұрын
Wow, these videos actually explain the concepts without copying and pasting wikipedia like all the others!
@juhiagarwal7682
@juhiagarwal7682 4 жыл бұрын
Awesome explaination...I am a tester and now I remember that developers used only post requests. That time I was very surprised hows it possible :D
@erensrtky
@erensrtky 5 жыл бұрын
You are best bro, i guess im addicted to your videos about network :)
@hnasr
@hnasr 5 жыл бұрын
Thanks Eren! What do you want to see next so I add it to my list of videos to make
@erensrtky
@erensrtky 5 жыл бұрын
​@@hnasr Might be web scraping with nodejs.
@erensrtky
@erensrtky 5 жыл бұрын
@@hnasr Or how arp attacks works might be great.
@Prachivibes
@Prachivibes 3 жыл бұрын
All videos are amazing, I have been working in the security domain, for me, some network concepts were not clear, but your videos make it so easy, keep making videos, also can you make API keys vs OAuth videos from a security standpoint, when to use what
@LynnyrdRavage
@LynnyrdRavage Жыл бұрын
at 8:42 I did not understand your example with the email. Would you care to explain?
@hineshsahani4736
@hineshsahani4736 Жыл бұрын
Amazing explanation.
@ferdinandf3208
@ferdinandf3208 2 жыл бұрын
Awesome explaination!
@RashidAli-tx3vm
@RashidAli-tx3vm 2 жыл бұрын
You can add body to get request easily.
@TheTwistedTraceur
@TheTwistedTraceur 2 жыл бұрын
very informative, lots of things i learned . thanks
@drews
@drews 10 ай бұрын
Super helpful, thanks!
@cool-aquarian
@cool-aquarian 3 жыл бұрын
Nice comparison. Idempotent was confusing. And what is your opinion about using Headers in GET request to send small amount of data securely to server ?🙄
@AhmedElAtari
@AhmedElAtari 5 жыл бұрын
Hi hussein, I think POST itself doesn't change the data on the server, its the developer who choose to change the data or not. So, in my opinion we can't consider POST safe because of that reason. But We could say POST is safe maybe because its hides the parameters ( data ) that is sent.
@hnasr
@hnasr 5 жыл бұрын
Ahmed El Atari hey Ahmed, yes its the developer that make the decision to comply with the HTTP standard and follow it or not. By definition POST is not supposed to be safe while GET is safe: If the developer implement GET and in the backend they inserted a new resource or updated the postgres row than its no longer safe so its so dangerous because browsers assume GET is safe and they implement code based on this.
@TheScarnak
@TheScarnak Жыл бұрын
There is nothing that prohibits a GET request from containing a body. For example, if the URL for a specific response is becoming too long and cumbersome this information can be included within the body of the GET request to be parsed by the server. Allowing for a larger data request limit when using GET.
@semikolon4229
@semikolon4229 4 жыл бұрын
Thanks, helped a lot.
@jakubfrei3757
@jakubfrei3757 2 жыл бұрын
Thank you very much for your content, its super valuable
@animeshmishra4282
@animeshmishra4282 2 жыл бұрын
Perfectly splendid
@aminalamdarloo349
@aminalamdarloo349 2 жыл бұрын
Dear bro . I'm looking for get and post method for one special problem and i cant found it in your video but i know you can do it . I need to know how i can use get and post method for captcha code when the server is so busy and captcha code not shown . Do you think that its possible to appear captcha code on busy or overloaded sites by get and post method. Tnx
@rekhakaushik4292
@rekhakaushik4292 2 жыл бұрын
Nice
@abraruralam3534
@abraruralam3534 8 ай бұрын
Therapist: the uncanny valley of accents doesn't exist The uncanny valley of accents:
@davidbalme2883
@davidbalme2883 Жыл бұрын
Minor nit .. (well many not minor) .. you can technically have a body in a GET request
@onmroman5391
@onmroman5391 5 жыл бұрын
Dude ur Awesome !
@hnasr
@hnasr 5 жыл бұрын
ONM Roman thanks! You are more awesome thanks for your message ❤️
@kanishk1149
@kanishk1149 11 ай бұрын
Very Nice explanation but instead of explaining what does GET and POST actually mean in detail, you explained other things
@harshavardhan9991
@harshavardhan9991 4 жыл бұрын
Thanks Brother, couple of questions like as usual :) I haven't seen your video about E-Tags. If you have already covered following questions in E-tags video. please ignore it. -> 1. will pre-fetching & caching default applies to GET request like browser implements them ? or any customizations needed ? -> 2. In the case of caching, client will always send a request to server. whether there is a change in content or not. however, imagine there is a situation where there will be no change in data for next 24 hrs. can i cache this data in localStorage object in browser with key as date. before sending request to the client. I will check whether there is data for today in localStorage object. if it is , I can use it otherwise i will send a request.. is it safe to use this pattern or localStorage implementation is based on browser like google has this. I am not sure about other browsers.. -> 3. I hope, for above pattern we cannot use pre-fetching. because browser makes a smart decision whether the request has to be sent or not. is it applies only to images and binary data.. or any other data too like simple text.. I just started my career in development field. that's the reason, i am asking so many questions... Thank you !!
@hnasr
@hnasr 4 жыл бұрын
Great questions! 1) prefetching is implemented by the browser, if you write your own app you will have to do the prefetching 2) the browser always sends the request if it was asked to (script call) the server tells the client if the content has changed, your idea is amazing 😉 you can sure cache things to safe yourself the extra request that are useless. That being said , those requests dont cost much because the response is empty.. 3) you can override browser’s prefetching i believe
@harshavardhan9991
@harshavardhan9991 4 жыл бұрын
@@hnasr Thank you, I will look into overriding prefetching stuff..
@monicah3788
@monicah3788 2 жыл бұрын
your good..
@arymsg
@arymsg Ай бұрын
I think this video was used to train gemini
@harshavardhan9991
@harshavardhan9991 4 жыл бұрын
I don't want to mix up this question with previous one's.. I am creating a new comment.. While reading mozilla document on HTTP. I found following sentence under webserver section ( developer.mozilla.org/en-US/docs/Web/HTTP/Overview) A server is not necessarily a single machine, but several server software instances can be hosted on the same machine. With HTTP/1.1 and the Host header, they may even share the same IP address. Question : why we need to install several server software instances on the same machine. is it like, on port 80 we are using some application and another port 8080 we are running some other application.. can't we do this single server software instance ? Thanks mentor for all the help you are providing..
@hnasr
@hnasr 4 жыл бұрын
Great question again this is called SNI (server name indication) . You host multiple servers in a single machine to host multiple websites over a single static public ip address to save money since ips are expensive. Instead of having three public IP addresses you can have one public ip address point to a machine hosting 3 servers Enjoy kzbin.info/www/bejne/qmHdnYJrYrOKfLc
@harshavardhan9991
@harshavardhan9991 4 жыл бұрын
@@hnasr Thanks for the video, I will add it to my watch list..
@AbhishekSHARMA-he1fd
@AbhishekSHARMA-he1fd 5 жыл бұрын
Hi Hussein, Can we cache get request, If yes then what is the use of caching get request.
@hnasr
@hnasr 5 жыл бұрын
Abhishek SHARMA hey! Sure you can cache get requests and I explain that in in minute 8:30
@Good-Enuff-Garage
@Good-Enuff-Garage 3 жыл бұрын
no examples
@dhiyanabdurazack5257
@dhiyanabdurazack5257 Жыл бұрын
Add a comment...
@hardryv3719
@hardryv3719 4 жыл бұрын
Better
Requests vs HTTPX vs Aiohttp
15:11
ArjanCodes
Рет қаралды 40 М.
HTTP Caching with E-Tags -  (Explained by Example)
16:47
Hussein Nasser
Рет қаралды 57 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Proxy vs Reverse Proxy Server Explained
14:18
Hussein Nasser
Рет қаралды 135 М.
Post vs Put
23:43
.NET Interview Preparation videos
Рет қаралды 94 М.
HTTP 1 Vs HTTP 2 Vs HTTP 3!
7:37
ByteByteGo
Рет қаралды 363 М.
Flask Tutorial #4 - HTTP Methods (GET/POST) & Retrieving Form Data
11:06
How HTTP/2 Works, Performance, Pros & Cons and More
22:45
Hussein Nasser
Рет қаралды 110 М.
Stateful vs Stateless Applications (Explained by Example)
14:44
Hussein Nasser
Рет қаралды 202 М.
Making Minimalist Web Server in C on Linux
10:23
Nir Lichtman
Рет қаралды 260 М.
LNS - 2 cô gái tốt bụng || Kind 2 girls #shorts
0:47
Linh Nhi Shorts
Рет қаралды 4,2 МЛН
Массаж головы пранк🤣
0:55
Kirya Kolesnikov
Рет қаралды 5 МЛН
The Million view clip on China's Tiktok P2428 #shorts #gochannel
0:15
Go Channel TV
Рет қаралды 29 МЛН
КОРОЧЕ ГОВОРЯ, НЕДЕЛЯ БЕЗ ТЕЛЕФОНА
3:54
СИЖУ БЕЗ ЕДЫ, ПЬЮ ОДНУ ВОДИЧКУ.
21:37
Быть Добру
Рет қаралды 79 М.