Lab Task - 02 (21pwbcs0854)
Lab Task - 02 (21pwbcs0854)
PESHAWAR PAKISTAN
Main Campus
1. Is your browser running HTTP version 1.0 or 1.1? What version of HTTP is the server
running? HTTP 1.1 (see screenshot)
2. What languages (if any) does your browser indicate that it can accept to the server?
7. Inspect the contents of the first HTTP GET request from your browser to the server. Do
yousee an “IF-MODIFIED-SINCE” line in the HTTP GET?
No.
8. Inspect the contents of the server response. Did the server explicitly return the contents
ofthe file? How can you tell? See screenshot of response with Alice’s Adventures...
9. 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?
Yes.
If-Modified-Since: Wed, 12 Mar 2014 17:29:08 GMT\r\n.
See screenshot below.
10. What is the HTTP status code and phrase returned from the server in response to this
secondHTTP GET? Did the server explicitly return the contents of the file? Explain.
As seen in the previous screenshot, we get a HTTP/1.1 304 Not Modified Response. This
is much shorter than the full response packet seen previously which contained all of
Alice in Wonderland.
11. How many HTTP GET request messages were sent by your browser (again, ignoring
requestsfor favicon.ico)?
Just one.
12. How many data-containing TCP segments were needed to carry the single HTTP
response?
No.
15. How many HTTP GET request messages were sent by your browser?
No need since Wireshark has already done the decoding. See the previous screenshot. Our
credentials are clearly visible in wireshark