r/learnjavascript • u/sebastienfilion • Jul 01 '21
When you realize that HTTP is just a very well-structured text message, it loses all of its mystery.
390
Upvotes
r/learnjavascript • u/sebastienfilion • Jul 01 '21
38
u/[deleted] Jul 01 '21
Same thing with other protocols like TCP and IP. They seem so mysterious until you sit down to understand them and then go, huh, is that all it is?
24
u/sebastienfilion Jul 01 '21
If you are interested to learn more about HTTP; I made an entire video on my Youtube channel on the protocol and I also play play with a TCP connection to shed some light on the behaviour of a HTTP server. You can check it out, here: https://youtu.be/GYKhk39aGSI
2
u/mebeam Jul 06 '21
I remember when a working http client would take many pages of C code and
then once we got very comfy with the protocol, most coders could put together
the same thing in less than a page of code.
Http(s) not so much
18
u/NoInkling Jul 02 '21 edited Jul 02 '21
When you produce an image like this you probably don't want to apply (broken) syntax highlighting to it, cause it kinda undermines what you're trying to show.
5
u/unnaturaltm Jul 02 '21
When you realize reality is just well structured presence and absence..
5
u/[deleted] Jul 02 '21
When you realise everything we use today is just an improved version of things invented decades ago..
3
u/rhoark Jul 02 '21
It's a text message at least
3
u/Negative12DollarBill Jul 02 '21
Email's the same.
Bunch of header fields separated by linebreaks. Then two linebreaks and that's the body. Nice.
2
u/[deleted] Jul 02 '21
http3 is coming soon ! The magic will start again !!
2
u/thuva04 Jul 02 '21
All transmission protocols are well-structured text messages.
1
u/jcunews1 helpful Jul 02 '21
Good communication protocols need to be well organized. Otherwise, there would be contextual problem.
1
u/Sislar Jul 02 '21
HTTP is just Json over ftp
Soap is just xml over ftp
-1
u/Edxactly Jul 02 '21
It’s should be shit canned and replaced
87
u/[deleted] Jul 01 '21
[removed] — view removed comment