What exactly is the HTTP protocol and how to write a new one from scratch?

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ม.ค. 2025

ความคิดเห็น • 72

  • @cyberonymous4100
    @cyberonymous4100 3 หลายเดือนก่อน +10

    This is exactly my understanding of a protocol is, after working on several protocols for the last few years!
    It’s amazing to see such content for free!
    This drawn me the interest to check your other videos too! Keep up the good work brother!😇

  • @rohitkashyap6301
    @rohitkashyap6301 10 หลายเดือนก่อน +4

    Just came across this channel because my friend told me to check, this is undoubtedly one of the best programming channels out there!

  • @shikharagrawal3424
    @shikharagrawal3424 10 หลายเดือนก่อน +5

    Never seen a better video on protocol then this!!

  • @ashishpbhai
    @ashishpbhai 8 หลายเดือนก่อน +1

    Such a nice explanation with a simple example. You are a good teacher!! Keep doing more of it. Thanks for making this one :)

  • @keshavtha
    @keshavtha หลายเดือนก่อน

    i learned so much here and now
    i am going to implement an http server from scratch in cpp.

  • @tejasraut3550
    @tejasraut3550 10 หลายเดือนก่อน +5

    Nothing is more advance than basic, well explained!

  • @pinakadhara7650
    @pinakadhara7650 10 หลายเดือนก่อน +2

    At 10:12, is the server hit after mentioning content length as 28? I always assumed HTTP requests are fully prepared on the client side and then the connection is established with the server and the server receives it in one go and doesn't have to wait!

    • @pinakadhara7650
      @pinakadhara7650 8 หลายเดือนก่อน +1

      To answer my own question, for anyone else wondering the same - a TCP connection is established in the very beginning through a TCP handshake and the connection is kept open throughout the request-response life cycle.

  • @vishalsingh8566
    @vishalsingh8566 7 หลายเดือนก่อน

    No doubt the most simple and clear explanation of protocol

  • @labibahmed5732
    @labibahmed5732 6 วันที่ผ่านมา

    Amazing explaination. Thanks

  • @TechSpot56
    @TechSpot56 10 หลายเดือนก่อน

    Great video, Arpit.

  • @joeljacob4685
    @joeljacob4685 7 หลายเดือนก่อน

    Beautifully explained !!

  • @SauravNrai
    @SauravNrai 10 หลายเดือนก่อน +5

    Amazing! Would love to see an RFC explanation in depth from you 😄

    • @AsliEngineering
      @AsliEngineering  10 หลายเดือนก่อน +3

      hahah. I did one for REST, but very few watched it :) kya hi kare!

  • @jagannathsahu1087
    @jagannathsahu1087 10 หลายเดือนก่อน

    i didnt know this, every developer should know this.good video.thanks

  • @kuldeeppanwar9950
    @kuldeeppanwar9950 10 หลายเดือนก่อน +1

    great in-depth explanation. amazing.......

  • @raj_kundalia
    @raj_kundalia 9 หลายเดือนก่อน

    Thank you so much, had an idea but you clarified it more!

  • @vaishnav4035
    @vaishnav4035 5 หลายเดือนก่อน

    Thanks, Arpit

  • @t1m3__
    @t1m3__ 10 หลายเดือนก่อน

    Thanks, it's a great explanation!

  • @ganeshgottipati
    @ganeshgottipati 10 หลายเดือนก่อน +1

    Great Video Sir! Can you explain how REST and SOAP rely on it or developed based on it?

  • @sunilsurana4767
    @sunilsurana4767 10 หลายเดือนก่อน

    Awesome explanation. Lot of concepts got cleared. What software you use to create this presentation?

  • @chandrachurmukherjeejucse5816
    @chandrachurmukherjeejucse5816 10 หลายเดือนก่อน +1

    Great video sir.

  • @Manoj-wx4qo
    @Manoj-wx4qo 10 หลายเดือนก่อน

    Please make more videos on Internet/Web fundamentals

  • @ganeshgottipati
    @ganeshgottipati 10 หลายเดือนก่อน +1

    Great Video Sir! Can you explain how REST and SOAP emerged out of it?

  • @Engineering_101_
    @Engineering_101_ 10 หลายเดือนก่อน

    Thanks Arpit.

  • @palakjain2505
    @palakjain2505 หลายเดือนก่อน

    one word- wow.

  • @codemode2925
    @codemode2925 10 หลายเดือนก่อน

    thanks for these videos.
    also liking and commenting on this video, so that the algo pushes more such videos on my feed. Please youtube.

  • @tesla1772
    @tesla1772 10 หลายเดือนก่อน

    Hey Atpit, one question, At 6:22 you said that the error was emitted by golang server. But, how did the request reach golang server without passing an hostname

    • @AsliEngineering
      @AsliEngineering  10 หลายเดือนก่อน +2

      The request went over TCP. Host header does not mean it needs to go there. It is just a cosmetic header which tells from where the request is originating.
      Most framework does not require it. Try doing this with flask. You will see it does not throw error due to missing host header

    • @devsami
      @devsami 10 หลายเดือนก่อน

      Just to understand better, so we used the netcat to establish a TCP connection on the localhost address on the 1729 port. But the Host header is part of the Request Header, which is specific to the Go http server, right?

    • @AsliEngineering
      @AsliEngineering  10 หลายเดือนก่อน

      @@devsami Yes. It is Go's default HTTP server that returned bad request if it did not see hot header. Flask does not give that error.

  • @kritibindra4232
    @kritibindra4232 10 หลายเดือนก่อน +2

    Very easy to understand and follow. Next time I'll have an answer if somebody asks me what is a protocol :p

  • @samarth_patel228
    @samarth_patel228 10 หลายเดือนก่อน +7

    Defining API can be considered equivalent of defining our own protocol.

    • @thisisamishyt
      @thisisamishyt 10 หลายเดือนก่อน +2

      i don't think so. you follow a protocol to write your api.

    • @negasonicteenagewarhead
      @negasonicteenagewarhead 10 หลายเดือนก่อน

      Lol

    • @sanjaycse9608
      @sanjaycse9608 10 หลายเดือนก่อน

      ​@@thisisamishytIts kind off high level example

    • @ItachiXSanjii
      @ItachiXSanjii 10 หลายเดือนก่อน +1

      Nope. When you Define API, you just define endpoint. When client hit that API, it comes via PROTOCOL to your endpoint.

    • @thenerdycoder07
      @thenerdycoder07 10 หลายเดือนก่อน

      Noob engineer

  • @chinmoykr
    @chinmoykr 9 หลายเดือนก่อน

    I have one question: When you establish a manual connection, does that TCP connection stay alive until you manually close it by using Ctrl+C? What happens in the case of requesting using curl or a browser? Does it close the TCP connection as soon as the response is received?

  • @noraelkam7662
    @noraelkam7662 10 หลายเดือนก่อน

    Can you please show me how to use p5.js to create an algorithm that draws the Sierpinski triangle. where it is possible to select the number of generations before the program is run? :)))

  • @sampreethinkulu6684
    @sampreethinkulu6684 10 หลายเดือนก่อน

    Need one on TCP as well

  • @nagesh007
    @nagesh007 6 หลายเดือนก่อน

    Thanks

  • @HarishKumar-jm5bk
    @HarishKumar-jm5bk 10 หลายเดือนก่อน

    Hey arpit I love your videos please can u make series on golang backend

  • @ALI-OWAIS-JAFRI
    @ALI-OWAIS-JAFRI 10 หลายเดือนก่อน

    Very nice

  • @techdemy4050
    @techdemy4050 10 หลายเดือนก่อน

    Can you please make a video on Gorilla DB as well. I am facing some difficulty in understanding Gorilla DB research paper.

  • @rajatmishra9993
    @rajatmishra9993 10 หลายเดือนก่อน

    Can you make a video on GRPC as well? GRPC does not have GET/PUT etc etc but still is http 2.0. How does that work?

    • @AsliEngineering
      @AsliEngineering  10 หลายเดือนก่อน +1

      Grpc is built on top of http2. So the payload that is sent in message comtains the required metadata that a grpc server can interprete and understand which method to call and which arg. I have a video on RPC in my channel which can be a good starting point for you.

  • @GauravSinghvi-yu8jd
    @GauravSinghvi-yu8jd 10 หลายเดือนก่อน +2

    Sir i am following you since a few months. I have a really important question to ask
    You mentioned many times that you have built some core projects, not some web or app, like using some FUSE, PINTOS etc.
    It sounds great but at the same time is overwhelming, like I don't know how to go about them.
    You have also answered that just start coding, but please can you explain a bit about what can be a starting point and how should be proceed. I know you don't believe in some roadmap or like that , but any advice from you in that direction would be really appreciated.
    And I am now in final year, looking for placements. Now i think i don't have so much time to do no-fluff engineering

    • @AsliEngineering
      @AsliEngineering  10 หลายเดือนก่อน +2

      Placements are important, focus on what matters the most today. Everything else can wait.

    • @GauravSinghvi-yu8jd
      @GauravSinghvi-yu8jd 10 หลายเดือนก่อน +2

      @@AsliEngineering But still sir please answer the above quesn too

    • @sourabhkhandelwal689
      @sourabhkhandelwal689 10 หลายเดือนก่อน +1

      I am not Arpit, but my answer would be that start small. If you've been following Arpit, you would know that he has always advised us to find small opportunities for implementation. So instead of jumping into implementing a file system right away, focus on how you can build the tiny stuff first. For example, how about writing a scheduler? You can not bench press 100 on the first day, it's going to take a long time to build that muscle. Likewise, it's natural that you would find these projects overwhelming if you aren't habitual of getting your hands dirty.

  • @naruto5437
    @naruto5437 9 หลายเดือนก่อน

    gold stuff content

  • @Tech-Tonic-Tales
    @Tech-Tonic-Tales 10 หลายเดือนก่อน

    Can you please please make an indepth video on CDN(content delivery network )

    • @AsliEngineering
      @AsliEngineering  10 หลายเดือนก่อน +2

      There are some topics that I go in depth in my courses and hence cannot put them out on YT. CDN is one of them.
      We spend about 2 hours understanding it end to end. Apologies but I hope you understand.

    • @Tech-Tonic-Tales
      @Tech-Tonic-Tales 10 หลายเดือนก่อน

      @@AsliEngineering no problem. may be an introductory video

  • @siddhantchavan1370
    @siddhantchavan1370 10 หลายเดือนก่อน

    Liking before watching

  • @sagar-tt4ub
    @sagar-tt4ub 4 หลายเดือนก่อน

    Arpit, do have a discord channel?

  • @SurajYadav-tr1bn
    @SurajYadav-tr1bn 10 หลายเดือนก่อน +1

    ❤️❤️❤️

  • @classical-bit
    @classical-bit 2 หลายเดือนก่อน

  • @nihshrey
    @nihshrey 9 หลายเดือนก่อน

    This is Liquid Gold.

  • @jarrett2513
    @jarrett2513 8 หลายเดือนก่อน

    Promo sm 😂

  • @mohammedshahed5051
    @mohammedshahed5051 10 หลายเดือนก่อน

    Content is good but instead of explaining http methodologies are, i would have appreciated what exactly http protocol is, like for ex: ambiguity == having multiple meanings making it clear.
    For ex: im in a interview they ask me what exactly is http protocol is, i say, it have these specs (get, post, ), client initiates the request, content is served etc...... they will be like no that is what http means that is again a method of http, what exactly is HTTP? me -> :( ,
    Again no offence arpit, i love the way you to teach, you are an absolute SME.

    • @gauravaws20
      @gauravaws20 10 หลายเดือนก่อน +2

      it is a protocol. a standard of communication using which a client and server can talk to each other. http is hyper text transfer protocol. you should be able to find what hyper text means, transfer and protocol must be clear now.

  • @birdistheword1226
    @birdistheword1226 10 หลายเดือนก่อน

    Please get rid of the lines where u write.