Wireshark Lab: HTTP
Prof. Nicole Novielli
Reti di Calcolatori
Laurea Triennale in Informatica
Università degli studi di Bari
HTTP Request
• Basic Get/Response interaction
Incapsulamento
HTTP request
HTTP version
Client
Rispondi alle seguenti domande
• Quale versione HTTP implementa il server?
• Qual è l’indirizzo IP del tuo computer?
• Quale quello del server?
• Qual è lo status code restituito dal server al tuo browser?
• Quando è stata apportata l’ultima modifica al file HTML inviato dal
server?
• Quanti byte contiene il messaggio ricevuto dal tuo browser?
HTTP Conditional GET/response interaction
Hit refresh
Answer the following questions
• 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?
• Inspect the contents of the server response. Did the server explicitly
return the contents of the file? How can you tell?
• 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?
• 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.
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?
Inspect the contents of the server response. Did the server explicitly
return the contents of the file? How can you tell?
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?
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.
Retrieving long documents
HTTP GET
Multiple-packet TCP response
First TCP segment
Second TCP segment
Third TCP segment
Fourth TCP segment
Answer the following questions
• 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?
• Which packet number in the trace contains the status code and
phrase associated with the response to the HTTP GET request?
• What is the status code and phrase in the response?
• How many data-containing TCP segments were needed to carry the
single HTTP response and the text of the Bill of Rights?
HTML Documents with Embedded Objects
How many gets did your browser sent?
How many gets did your browser sent?
What new fields is included
in the second request?
How many gets did your browser sent?
What new fields is included
in the second request?