Module 5
Module 5
(iii)Socket Programming :
Wrt HTTP (i)Discuss about Non-Persistant and Persistent Connections with HTTP:
RTT is the time taken for a packet to travel from client to server and then back to the client.
• The total response time is sum of following (Figure 1.4): i) One RTT to initiate TCP
connection (RTT Round Trip Time). ii) One RTT for HTTP request and first few bytes of HTTP
response to return
Example :
Request Line:
Method URL Version
GET /Falcon9/home.html HTTP:/1.1
Header Lines :
Filed name : Values
Host: www.Spacex.com
Connection : Close
User Agent: Mozilla/5.0
Accepted-language: eng
Host: www.Spacex.com
If-modified-since : Thu , 4 April 2024 22:40:00
Response :
////Note Its not modified as the latest launch of Falcon 9 took place on
1st April 7:30 pm Pacific time