DEV Community

Cover image for Things I Brushed Up On This Week: The HTTP Request Lifecycle

Things I Brushed Up On This Week: The HTTP Request Lifecycle

Daniel Golant on July 25, 2017

Things I Brushed Up On This Week The HTTP Request Lifecycle I have been interviewing for jobs recently, and as most devs know...
Collapse
 
ekwinder profile image
Ekwinder Saini • Edited

It's overall a great article but I have just one issue with it. In the teardown section you have written "Once the response has been fully delivered, the client sends a FIN packet at the TCP level, to which the server responds with an ACK" whereas the process should be the other way around. The server sends the FIN packet because it has no more packets to send and/or wants to close the connection and then the client responds with a FIN-ACK packet. Then the client sends it's own FIN packet and the server responsds with a FIN-ACK.

Collapse
 
charlesr1971 profile image
Charles Robertson

Hey Daniel. This is a great article. I was asked this question in a recent interview for an Angular Dev job. I must say, I just mumbled about HTTP and secure handshake etc. Yes. I fluffed it, but thanks to your article, I won’t make the same mistake.

However, having my own Windows Server 2012R2 VPS, I have encountered another protocol that I am sure is involved somehow. TLS. How does TLS fit into all this? I think we are on TLS1.2, currently...

Collapse
 
harniva profile image
Vasa

Daniel, this is a great post and a good refresher on the topic.

I ended up writing my own guide for HTTP connection lifecycle:
github.com/hardikvasa/http-connect...

Collapse
 
dallas profile image
Dallas Reedy

This was great, Daniel! Thanks for taking the time to share what you’ve learnt (or recently re-learnt, as the case my be). I’m currently going through the same job-hunting process, so it’s great to have such ready refreshers on these topics!

Collapse
 
ben profile image
Ben Halpern

It's kind of little-known secret that you can use gifs for the cover image :)

Collapse
 
dangolant profile image
Daniel Golant

:D Beginners luck!

Collapse
 
ben profile image
Ben Halpern

By the way, this is great timing. I was just looking to brush up on these topics myself.

Thread Thread
 
dangolant profile image
Daniel Golant

I'm doing RegExes next!

Collapse
 
danielkun profile image
Daniel Albuschat

Great write up!! I hope you continue your series. It is very valuable for devs to grok the underlying mechanisms, but all too often they are very little-known.

Collapse
 
dangolant profile image
Daniel Golant

Thanks for reading it, working on more!

Collapse
 
totiiimon profile image
Totiimon

This is really cool :) Waiting for more posts like this!

Collapse
 
dangolant profile image
Daniel Golant

Glad you enjoyed it :D

Collapse
 
xiaohuoni profile image
xiaohuoni

I like that,
Thanks for sharing!

Collapse
 
dangolant profile image
Daniel Golant

Thank you, glad you enjoyed it!

Collapse
 
subbramanil profile image
Subbu Lakshmanan

Great Job Daniel. Very elaborative and definitely worth sharing with my junior developers as well.

Collapse
 
pinksynth profile image
Sammy Taylor

Very helpful article. Thank you!

Collapse
 
padmachannal profile image
Padma Channal

Crisp and Easy to understand! I appreciate your efforts to write this.

Collapse
 
temurbekruziev profile image
Temurbek Ruziev

Really helpful article, Thank you

Collapse
 
mmg profile image
Muhamed G

Great article!
Thank you, Daniel.

Collapse
 
dangolant profile image
Daniel Golant

Thanks for taking the time to read!