Professional Documents
Culture Documents
F Gokulraj Lab2
F Gokulraj Lab2
Date: 03-05-2022
Individual Contributions:
Sandhya Balakrishna: Researched on Ring Resonators
Gokulraj KS: Researched on Photonic Crystal Resonators
1
___________________________________________________________________________________
___________________________________________________________________________________
Objective:
To explore HTTP GET request/response by downloading simple HTML files
which contain no embedded objects. We will also explore the conditional
GET request/response and analyze the differences between the GET and
conditional GET messages.
Theory:
GET:
The GET method is used to retrieve information from the given server
using a given URL. Requests using GET should only retrieve data and
should have no other effect on the data.
CONDITIONAL GET:
The HTTP Protocol defines a caching mechanism, in which the proxy
web-servers can cache pages, files, images etc. Since caching is in place,
there is a method which the servers are asked to return the document, either
the “cached” or “live” document. This request of asking the server for a
document considering a specific parameter is called a Conditional GET
Request. In this request, a specific request header is sent If-Modified-Since.
HTTP Request Format:
2
___________________________________________________________________________________
___________________________________________________________________________________
Ans. Status code is 200 OK as found in the service line of the HTTP reply.
5. When was the HTML file that you were retrieving last modified at
the server?
Ans. Last Modified on Sun, 28 Feb 2021 11:02:19 GMT
6. How many bytes of content are being returned to your browser?
Ans. Content length is of 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.
Ans. We found a <html> header and it is not displayed in the packet listing
window as it is a Protocol Header.
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?
Ans. We cannot find any line as “IF-MODIFIED-SINCE” in the HTTP GET.
9. 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 explicitly returns the content of the file as we can
observe three headers present which are Last Modified, Content Length
and Content Type.
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?
Ans. Yes we can see “IF-MODIFIED-SINCE:” line in the second HTTP
GET.
IF-MODIFIED-SINCE: Sun, 28 Feb 2021 05:59:01 GMT
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.
4
___________________________________________________________________________________
___________________________________________________________________________________
Ans. Return response is 304 Not Modified. We cannot find any header
lines for the object so the server did not reply to the object.
Screenshots:
5
___________________________________________________________________________________
___________________________________________________________________________________
6
___________________________________________________________________________________
___________________________________________________________________________________
7
___________________________________________________________________________________
___________________________________________________________________________________
8
___________________________________________________________________________________