+ All Categories
Home > Documents > Solução do lab wharishark: HTTP

Solução do lab wharishark: HTTP

Date post: 10-Feb-2016
Category:
Upload: marcos-filipe
View: 7 times
Download: 3 times
Share this document with a friend
Description:
Solução do laboratório de HTTP do wharishark V6.1
9
The Basic HTTP GET/response interaction 1
Transcript
Page 1: Solução do lab wharishark: HTTP

The Basic HTTP GET/response interaction

1

Page 2: Solução do lab wharishark: HTTP

1.Is your browser running HTTP version 1.0 or 1.1? What version of HTTP is the server

running?

R = A versão do Browser é HTTP 1.1 e do servidor tbm é HTTP 1.1

2.What languages (if any) does your browser indicate that it can accept to the server?

R= pt-BR e en-US, ou seja, aceita idioma brasileiro e americano.

3.What is the IP address of your computer? Of the gaia.cs.umass.edu server?

R = Ip do computador é 192.168.1.2. Ip do gaia.cs.umass.edu server é 128.119.245.12

4.What is the status code returned from the server to your browser?

R = É o código de status de resposta HTTP que indica que o servidor recebeu, reconheceu e

processoua solicitação do browser com êxito.

5.When was the HTML file that you are retrieving last modified at the server?

R = Última modificação em Fri, 02 Oct 2015 05:59:01 GMT

6.How many bytes of content are being returned to your browser?

2

Page 3: Solução do lab wharishark: HTTP

R= 128 bytes

The HTTP CONDITIONAL GET/response interaction

3

Page 4: Solução do lab wharishark: HTTP

7.By inspecting the raw data in the packet content window, do you see any headers within

4

Page 5: Solução do lab wharishark: HTTP

the data that are not displayed in the packet-listing window? If so, name one.

R = Todos os cabeçalhos podem ser encontrados.

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?

R= Não vejo essa linha na primeira requisição HTTP GET.

9.Inspect the contents of the server response. Did the server explicitly return the contents

of the file? How can you tell?

R= sim, retornou. Posso afirmar porque tem um campo chamado "Line-based text data:

text/html" onde se encontra o conteúdo do arquivo.

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?

R = Sim, consigo. A informação é "If-Modified-Since: Fri, 02 Oct 2015 05:59:01 GMT" que se

refere a uma data de ultima modificação a partir da ultima solicitação HTTP GET.

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

R= O status retornado foi "HTTP/1.1 304 Not Modified\r\n". O servidor não retornou o

conteudo do arquivo na segunda solicitação. O motivo é que o conteúdo já se encontra em

cache navegador não se fazendo necessário o envio do arquivo novamente. Assim poupa-se

processamento no servidor e no cliente, consumo de banda e tempo.

Retrieving Long Documents

5

Page 6: Solução do lab wharishark: HTTP

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?

R= Apenas 1 solicitação. É o pacote número 452.

13.Which packet number inthe trace contains the status code and phrase associated with

the response to the HTTP GET request?

R= É o pacote de número 460.

14.What is the status code and phrase in the response?

R= O status é "200 OK".

15.How many data-containing TCP segments were needed tocarry the single HTTP response

and the text of theBill of Rights?

R = Foram necessários 4 segmentos. os pacote de número 456,457,459 e o próprio pacote

460 do HTTP GET request.

HTML Documents with Embedded Objects

6

Page 7: Solução do lab wharishark: HTTP

16.How many HTTP GET request messages did your browser send? To which Internet

addresses were these GET requests sent?

R = Fora 4 requisições HTTP GET, para os endereços (128.119.245.12), (128.119.240.90),

(165.193.140.14), (128.119.240.90) respectivamente, sendo o mesmo endereço na segunda

e ultima requisição HTTP GET.

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.

R = Dúvida!

HTTP Authentication

7

Page 8: Solução do lab wharishark: HTTP

18.What is the server’s response (status code and phrase) in response to the initial HTTP

8

Page 9: Solução do lab wharishark: HTTP

GET message from your browser?

R = O status e frase é "401 Unauthorized"

19.When your browser’s sends the HTTP GET message for the second time, what new field

is included in the HTTP GET message?

R = O campo Authorization: Basic d2lyZXNoYXJrIC0gc3R1ZGVudHM6KG5ldHdvcms=\r\n

9


Recommended