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.
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/HiLumen Jul 02 '21
What a great video! I see your channel is fairly new, I have no doubt that if you keep up with the quality videos that you’ll have a large audience in no time. I like that you run a demo rather than just talking at the viewer.
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
1
u/sebastienfilion Jul 06 '21
Maybe you’ll want to follow my slow journey building a http client with “modern” tools. 😊 https://www.reddit.com/r/Deno/comments/oedy8j/if_you_need_to_handle_raw_http_request_in_deno/
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.
0
Jul 02 '21
[deleted]
7
u/NoInkling Jul 02 '21
You can select the language: it looks like you had JavaScript selected (or it was selected automatically) for it to produce this result.
0
Jul 02 '21
[deleted]
9
u/NoInkling Jul 02 '21
?
I'm just trying to provide some constructive criticism, don't take it as an attack.
Anyway there is a "Plain Text" option.
5
5
Jul 02 '21
When you realise everything we use today is just an improved version of things invented decades ago..
3
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
2
1
u/jcunews1 helpful Jul 02 '21
Good communication protocols need to be well organized. Otherwise, there would be contextual problem.
1
-1
87
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?