I have recently started my job as web application backend developer. I am bit stuck in understanding lifecycle of a Http request.
What I understood is
After this I am lost with
The request life cycle begins at the Start block and completes at the End block. When the request is created, only status/es connected to the Start are displayed to the user. Similarly, the request flow is considered to be closed only when the request reaches a status connected to the End block.
A web server receives the request. The server runs an application to process the request. The server returns an HTTP response (output) to the browser. The client (the browser) receives the response.
I think you are a bit wrong on your understanding of it.
If you go to www.google.com (not using any forms, just wanting the site), this is what happens:
GET / HTTP/1.1 Host: www.google.com
GET, PUT, POST, DELETE and others are HTTP request methods. They have special meaning which you can see in the RFC.
Cookies are commonly used to identify the same user across multiple HTTP requests, called sessions. Therefore these cookies are called session cookies
You can debug the communication by using a network sniffer tool, for example Wireshark. Firefox has a third party plugin called Tamper Data that can change the request before they are sent to the server.
The HTTP RFC is a good source of how it all works.
Hope it helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With