0% found this document useful (0 votes)
195 views7 pages

Lab 2a Computer Network

The document is a lab report summarizing the student's findings from analyzing HTTP requests and responses using Wireshark. The summary identifies: 1. Key details observed in HTTP GET and response messages like browser and server HTTP versions, returned status codes, file modification times and content lengths. 2. How a second conditional GET included an If-Modified-Since header and the server response was a 304 status. 3. Breakdown of packets needed to retrieve a long document like the Bill of Rights. 4. Serial downloading of embedded images in an HTML file. 5. Unauthorized response to initial request and addition of Authorization header on second request.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
195 views7 pages

Lab 2a Computer Network

The document is a lab report summarizing the student's findings from analyzing HTTP requests and responses using Wireshark. The summary identifies: 1. Key details observed in HTTP GET and response messages like browser and server HTTP versions, returned status codes, file modification times and content lengths. 2. How a second conditional GET included an If-Modified-Since header and the server response was a 304 status. 3. Breakdown of packets needed to retrieve a long document like the Bill of Rights. 4. Serial downloading of embedded images in an HTML file. 5. Unauthorized response to initial request and addition of Authorization header on second request.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Student: Van Chan Duong - 1811824 Instructor: Nguyen Hong Nam

Wireshark Lab:
HTTP v8.0
1. The Basic HTTP GET/response interaction
1. Is your browser running HTTP version 1.0 or 1.1? What version of HTTP is the
server running?
Answer: My browser is running HTTP version 1.1, the server is also running
HTTP version 1.1.
2. What languages (if any) does your browser indicate that it can accept to the
server?
Answer: The language accepted is en-US.
3. What is the IP address of your computer? Of the gaia.cs.umass.edu server?
Answer: The IP address of my computer is 10.28.129.75. The IP address of
gaia.cs.umass.edu server is 128.119.245.12
4. What is the status code returned from the server to your browser?
Answer: The status code returned from the server to my browser is 200.
5. When was the HTML file that you are retrieving last modified at the server?
Answer: The HTML was last modified at 5:59:01 GMT.
6. How many bytes of content are being returned to your browser?
Answer: 128 bytes.
7. 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.
Answer: I don’t see any headers within the data that are not displayed in the
message below.
Figure 1. GET Message

Gaiacomputer’s
My server’s IPIPaddress
address

My browser’s HTTP version

Accepted language

Figure 2. Response message


Server’s HTTP version

Return status

HTML file’s last modified time

Content’s length
2. The HTTP CONDITIONAL GET/response interaction
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?
Answer: There is no “IF-MODIFIED-SINCE” line in the first HTTP GET
9. Inspect the contents of the server response. Did the server explicitly return the
contents of the file? How can you tell?
Answer: The server did explicitly return the content of the file, the content of the
file can be found at the response message (marked with blue highlight in the figure
below):

Figure 3. First Repsonse Message

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?
Answer: I see an “IF-MODIFIED-SINCE” line in the HTTP GET, “IF-
MODIFIED-SINCE” followed by a specific time and date.
Figure 4. Second GET Message

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.
Answer: The HTTP status code and phrase returned from the server in response to
the second HTTP GET was “HTTP/1.1 304 Not Modified\r\n” (without quotation
mark). The server didn’t return the contents of the file since the content fetched
from the server in the first HTTP GET wasn’t satisfied the condition stated at the
first HTML response.
3. Retrieving Long Documents
Figure 5. The captured package

12. How many HTTP GET request messages did your browser send? Which packet
number in the trace contains the GET message for the Bill of Rights?
Answer: 1 HTTP GET request was sent from my browser. The package number in
the trace contains the GET message for the Bill of Rights was 114.
13. Which packet number in the trace contains the status code and phrase
associated with the response to the HTTP GET request?
Answer: The package number contains the status code and phrase associated with
the response to the HTTP GET request was 127.
14. What is the status code and phrase in the response?
Answer: The status code and phrase in the response is HTTP/1.1 200 OK.
15. How many data-containing TCP segments were needed to carry the single
HTTP response and the text of the Bill of Rights?
Answer: It needs 3 data-containing TCP segments to carry the single HTTP
response and the text of the Bill of Rights (122, 123 and 126).
4. HTML Documents with Embedded Objects

16. How many HTTP GET request messages did your browser send? To which
Figure 6. The captured packages

Internet addresses were these GET requests sent?


Answer: There are 3 HTTP GET request messages sent from my browser. The
GET requests was sent to 128.119.245.12 and 178.79.137.164
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.
Answer: My browser downloaded the two images serially since the HTTP GET
message was sent serially, one after another, the first one received its reponse then
the browser continue to proceed to send another GET response.
5. HTTP Authentication
Figure 7. The captured packages and the new field

18. What is the server’s response (status code and phrase) in response to the initial
HTTP GET message from your browser?
Answer: The server’s reponse in response to the initial HTTP GET message was
HTTP/1.1 401 Unauthorized (text/html)
19. When your browser’s sends the HTTP GET message for the second time, what
new field is included in the HTTP GET message?
Answer: The field Authorization, Basic and Cache-Control field was included in
the HTTP GET message.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy