Wireshark Lab: HTTP v8.
0
1. The Basic HTTP GET/response interaction
1 line HTMl line obtained after pasting the link on web-browser.
Wireshark interface.
SET 1 Questions:
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 version 1.1
(HTTP server version)
The server is also running on HTTP version 1.1
2. What languages (if any) does your browser indicate that it can accept to the server?
Language: The browser accepts English United States as shown below.
3. What is the IP address of your computer? Of the gaia.cs.umass.edu server?
IP address of my computer: 192.168.100.6
The IP of the gaia.cs.umass.edu server : 128.119.245.12 as shown below;
4. What is the status code returned from the server to your browser?
The status code is 200 which indicates ok as shown below.
5. When was the HTML file that you are retrieving last modified at the server?
April 1st 2024
6. How many bytes of content are being returned to your browser?
1070 bytes as shown below
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
No header.
2. The HTTP CONDITIONAL GET/response interaction.
Results obtained after pasting the provided link to chrome url
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?
Yes, I see an“IF-MODIFIED-SINCE” line in the HTTP GET. Below is the screenshot;
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; I can tell by inspecting Line-
based text data as follows;
As shown above, it can be seen that the line-based text returned the 5 lines on the browser:
(Congratulations again! Now you've downloaded the file lab2-2.html.
This file's last modification date will not change.
Thus if you download this multiple times on your browser, a complete copy
will only be sent once by the server due to the inclusion of the IN-MODIFIED-
SINCE
field in your browser's HTTP GET request to the server.)
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?
There is no “IF-MODIFIED-SINCE:” in the second HTTP GET request.
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.
From the response we can see the line-based text data with the contents of the file.
3. Retrieving Long Documents
Results of pasting the provided on the web browser.
12. How many HTTP GET request messages did your browser send? Which packet number in
the trace contains the GET message for the Bill or Rights?
My browser sent 2 HTTP GET request messages.
Packet numbers 145 and 176 contain the GET message for the Bill of Rights.
13. Which packet number in the trace contains the status code and phrase associated with
the response to the HTTP GET request?
Packet number 184
14. What is the status code and phrase in the response?
The status code is 404 and the response is Not Found
15. How many data-containing TCP segments were needed to carry the single HTTP response
and the text of the Bill of Rights?
No data-containing TCP segments was needed to carry single response.
4. HTML Documents with Embedded Objects.
Results after pasting the url on the web browser.
16. How many HTTP GET request messages did your browser send? To which Internet
addresses were these GET requests sent?
My browser sent 4 HTTP GET request messages.
The GET requests were sent to the following addresses;
and
Refer to the screenshot below
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.
The images were downloaded serially, when we check at the download time, we find
that it is different. The request and the response are therefore done serially. The
screenshot gives a visual illustration of the above argument.
5. HTTP Authentication
Results after pasting the url on to the web-browser featuring a login form.
Insertion of username and password to access the page
Shows successfully downloaded page after inserting the provided user name and
password
18. What is the server’s response (status code and phrase) in response to the initial HTTP
GET message from your browser?
Status code is 401 and the phrase is Unauthorized
Refer to the screenshot below;
19. When your browser’s 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 message for the second time, the new field included
in the HTTB GET message is the Authorization.
HTTP GET initial message
Compare:
Second HTTP get message with authorization field.