Name : Ammaar Naeem Laghari
Roll No : 20P-0180
Section: BCS-5B
Course Name: Computer Networks LAB
Submitted to : Mam Hurmat Hidayat
Submitted on : 10/18/2022
LAB 08
TASK 1:
1)Is your browser running HTTP version 1.0, 1.1, or 2?
Ans: My browser is running HTTP version 1.1.
2) What version of HTTP is the server running?
Ans: server is running HTTP version 1.1.
3) What languages (if any) does your browser indicate that it can accept to
the server?
Ans: sever accepts us-English language. That’s what my browser indicates.
4) What is the IP address of your computer? What is the IP address of the
[Link] server?
Ans: My IP address is ([Link]). IP address of [Link] server is
([Link]).
5) What is the status code returned from the server to your browser?
Ans: The status code returned from server to my browser is 200.
6) When was the HTML file that you are retrieving last modified at the
server?
Ans: It was last updated on Tue, 18 oct 2022.
7) How many bytes of content are being returned to your browser?
Ans: 540 bytes of content is being returned to browser.
8) By inspecting the raw data in the packet content window, do you see any
headers within the data that are not displayed in the packet-listing window?
If so, name one.
Ans: No we I don’t see any headers.
TASK 2
1) Inspect the contents of the first HTTP GET request from your browser to
the server. Do you see an “IF-MODIFIED-SINCE” line in the HTTP GET?
Ans: No. There is no “IF-MODIFIED-SINCE” line in the first HTTP GET request.
2) Inspect the contents of the server response. Did the server explicitly return
the contents of the file? How can you tell?
Ans: Yes the server returns the contents of the file. I can tell it because of the
response phrase and status code.
3) Now inspect the contents of the second HTTP GET request from your
browser to the server. Do you see an “IF-MODIFIED-SINCE:” line in the HTTP
GET6 ? If so, what information follows the “IF-MODIFIED-SINCE:” header?
Ans: Yes I can see the “IF-MODIFIED-SINCE:” line in the HTTP GET6. The
information header follows is date when its modified.
4) What is the HTTP status code and phrase returned from the server in
response to this second HTTP GET? Did the server explicitly return the
contents of the file? Explain.
Ans: HTTP status code and phrase returned from in response to 2nd HTTP GET
is 304 & Not modified. Server is not returning the contents of the file. Its taking
from the file and that’s why the response coming is not modified.