CCN Experiment - 3
CCN Experiment - 3
Experiment No. 3
PROBLEM: 1.)Is your browser running HTTP version 1.0 or 1.1? What version of
HTTP is the server running?
The browser is running HTTP/1.1, as indicated by the request line GET /
HTTP/1.1. The server is also using HTTP/1.1, as shown in the response
HTTP/1.1 204 No Content.
2.)What languages (if any) does your browser indicate that it can
accept to the server? In the captured session, what other information
(if any) does the browser provide the server with regarding the
user/browser?
The browser does not explicitly specify any preferred languages to the
server, as seen in the Accept: * header. Additionally, the browser
provides other information to the server, including the Host
(connection-check.ubuntu.com) and the Connection status
(close).
4.) What is the status code returned from the server to your browser?
The status code returned from the server to the browser is 204 No Content,
which means the request was successful, but the server did not return any
content in response.
BHARATIYA VIDYA BHAVAN’S
SARDAR PATEL INSTITUTE OF TECHNOLOGY
Bhavan’s Campus, Munshi Nagar, Andheri (West), Mumbai – 400058-India
Department of Computer Engineering
5.)When was the HTML file that you are retrieving last modified at the
server?
The Last-Modified date of the retrieved HTML file is not available in this
session because the response from the server is 204 No Content, which
typically does not include a last-modified timestamp.
7.)By inspecting the raw data in the "packet bytes" pane, do you see
any http headers within the data that are not displayed in the "packet
details" pane? If so, name one.
By inspecting the raw data in the "packet bytes" pane, an HTTP header that
is visible in the raw data but may not be fully displayed in the "packet
details" pane is Connection: close.
SCREENSHOT:
PROBLEM: 8.)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?
There is no "If-Modified-Since" line in the first HTTP GET
request. This is because the browser is requesting the resource for the first
BHARATIYA VIDYA BHAVAN’S
SARDAR PATEL INSTITUTE OF TECHNOLOGY
Bhavan’s Campus, Munshi Nagar, Andheri (West), Mumbai – 400058-India
Department of Computer Engineering
9.)Inspect the contents of the server response. Did the server explicitly
return the contents of the file? How can you tell?
The server explicitly returned the contents of the file, as indicated by the
HTTP/1.1 200 OK status code.
Additionally, the response includes a content type (text/plain or
text/html) and a non-zero content length, showing that the file contents
were included in the response.
10.)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 GET? If so, what information follows the
“IF-MODIFIED-SINCE:” header?
11.)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.
SCREENSHOT:
PROBLEM: 12.)How many HTTP GET request messages were sent by your
browser?
The first HTTP GET request does not contain an "IF-MODIFIED-SINCE"
line. This indicates that the browser is requesting the resource from the
server without providing a conditional request based on the last
modification date of the file.The browser sent multiple HTTP GET
requests, as seen in the captured network traffic. Each request corresponds
to a separate resource being fetched from the server.
14.)What is the status code and phrase associated with the response to
the HTTP GET request?
The HTTP response status code is "200 OK", which indicates that the
request was successfully processed, and the server returned the requested
content.
SCREENSHOT:
PROBLEM: 16.)How many HTTP GET request messages were sent by your
browser? To which Internet addresses were these GET requests sent?
The browser sent three HTTP GET requests, as seen in the packet list.
These requests were sent to the IP addresses 128.119.245.12 and
91.189.91.48.
17.)Can you tell whether your browser downloaded the two images
serially, or whether they were downloaded from the two web sites in
parallel? Explain.
BHARATIYA VIDYA BHAVAN’S
SARDAR PATEL INSTITUTE OF TECHNOLOGY
Bhavan’s Campus, Munshi Nagar, Andheri (West), Mumbai – 400058-India
Department of Computer Engineering
The images were likely downloaded serially since the GET request for
pearson.png appears only after the response for the HTML file was
received. If they were downloaded in parallel, their requests would have
been closer in the timeline.
SCREENSHOT:
HTTP Authentication
PROBLEM: 18.)What is the server’s response (status code and phrase) in response
to the initial HTTP GET message from your browser?
19.)When your browser sends the HTTP GET message for the second
time, what new field is included in the HTTP GET message?
When the browser sends the HTTP GET request again, it includes an
Authorization field containing user credentials for authentication.
BHARATIYA VIDYA BHAVAN’S
SARDAR PATEL INSTITUTE OF TECHNOLOGY
Bhavan’s Campus, Munshi Nagar, Andheri (West), Mumbai – 400058-India
Department of Computer Engineering
SCREENSHOT: