DEV Community

loading...

Discussion on: How HTTP works?

Collapse
ashutosh123joshi profile image
ashutosh123joshi

What is the request generated or what is the process happened when we hit google.com on browser?

Collapse
inambe profile image
Inam Ul Haq Author

What is the request generated

If you meant where; browser generate HTTP request for us.

what is the process happened when we hit google.com on browser?

Browser uses TCP/IP protocol to connect to google.com's server(DNS routing happens here). When connection is made, browser send HTTP request(which is essentially a text) to server using the connection. Server then respond to browser using same connection and browser receives and interpret that.

I'll further explain TCP/IP and connections in my next post where I'll create a bare(not using high-end APIs like provided by node and frameworks like express) web server using TCP/IP.