HTTP
HTTP
Pgina 1 de 4
De forma a responder ao primeiro conjunto de perguntas, vou colocar os prints de forma a postriormente
conseguir referencia-los.
GET:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------No.
Time
Source
Destination
Protocol Length Info
49 4.198982
192.168.0.12
128.119.245.12
HTTP
510
GET /wireshark-labs/
HTTP-wireshark-file1.html HTTP/1.1
Frame 49: 510 bytes on wire (4080 bits), 510 bytes captured (4080 bits)
Ethernet II, Src: IntelCor_99:88:b0 (00:21:5d:99:88:b0), Dst: Netgear_b0:b3:c6 (00:1f:33:b0:b3:c6)
Internet Protocol Version 4, Src: 192.168.0.12 (192.168.0.12), Dst: 128.119.245.12 (128.119.245.12)
Transmission Control Protocol, Src Port: 59758 (59758), Dst Port: http (80), Seq: 1, Ack: 1, Len: 444
Hypertext Transfer Protocol
GET /wireshark-labs/HTTP-wireshark-file1.html HTTP/1.1\r\n
[Expert Info (Chat/Sequence): GET /wireshark-labs/HTTP-wireshark-file1.html HTTP/1.1\r\n]
[Message: GET /wireshark-labs/HTTP-wireshark-file1.html HTTP/1.1\r\n]
[Severity level: Chat]
[Group: Sequence]
Request Method: GET
Request URI: /wireshark-labs/HTTP-wireshark-file1.html
Request Version: HTTP/1.1
Host: gaia.cs.umass.edu\r\n
Connection: keep-alive\r\n
User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.4 (KHTML, like Gecko)
Chrome/22.0.1229.79 Safari/537.4\r\n
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n
Accept-Encoding: gzip,deflate,sdch\r\n
Accept-Language: pt-PT,pt;q=0.8,en-US;q=0.6,en;q=0.4,pt-BR;q=0.2\r\n
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3\r\n
\r\n
[Full request URI: http://gaia.cs.umass.edu/wireshark-labs/HTTP-wireshark-file1.html]
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
RESPOSTA:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------No.
Time
Source
Destination
Protocol Length Info
52 4.317037
128.119.245.12
192.168.0.12
HTTP
494
HTTP/1.1 200 OK (text/
html)
Frame 52: 494 bytes on wire (3952 bits), 494 bytes captured (3952 bits)
Ethernet II, Src: Netgear_b0:b3:c6 (00:1f:33:b0:b3:c6), Dst: IntelCor_99:88:b0 (00:21:5d:99:88:b0)
Internet Protocol Version 4, Src: 128.119.245.12 (128.119.245.12), Dst: 192.168.0.12 (192.168.0.12)
Transmission Control Protocol, Src Port: http (80), Dst Port: 59758 (59758), Seq: 1, Ack: 445, Len: 428
Hypertext Transfer Protocol
HTTP/1.1 200 OK\r\n
[Expert Info (Chat/Sequence): HTTP/1.1 200 OK\r\n]
[Message: HTTP/1.1 200 OK\r\n]
[Severity level: Chat]
[Group: Sequence]
Request Version: HTTP/1.1
Status Code: 200
Response Phrase: OK
Date: Wed, 27 Feb 2013 23:03:19 GMT\r\n
Server: Apache/2.2.3 (CentOS)\r\n
Last-Modified: Wed, 27 Feb 2013 23:03:01 GMT\r\n
ETag: "8734d-80-c699b340"\r\n
Accept-Ranges: bytes\r\n
Content-Length: 128\r\n
[Content length: 128]
Keep-Alive: timeout=10, max=100\r\n
Connection: Keep-Alive\r\n
Content-Type: text/html; charset=UTF-8\r\n
\r\n
Line-based text data: text/html
Ficheiro: /home/marco/Documentos/UNI/Redes/trab3
Pgina 2 de 4
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------1. Is your browser running HTTP version 1.0 or 1.1? What version of HTTP is the
server running?
R: Na linha 17 do print do pedido, conseguimos verificar que a verso HTTP 1.1, Request Version:
HTTP/1.1, na linha 14 da resposta, constata-se que o servidor tambm est na mesma verso, a Request
Version: HTTP/1.1.
2. What languages (if any) does your browser indicate that it can accept to the
server?
Consultando o pedido, verificamos que o browser aceita a lingua portuguesa, inglesa, e portuguesa
regional do brasil. (Accept-Language: pt-PT,pt;q=0.8,en-US;q=0.6,en;q=0.4,pt-BR;q=0.2\r\n)
3. What is the IP address of your computer? Of the gaia.cs.umass.edu server?
No pedido efectuado ao servidor, podemos constatar que o IP da Source 192.168.0.12, e a Destination
128.119.245.12. Podemos verificar que na resposta, os IPs trocam.
4. What is the status code returned from the server to your browser?
No print de output, a linha corespondente ao Status Code, define o valor 200.
5. When was the HTML file that you are retrieving last modified at the server?
O ficheiro foi Last-Modified: Wed, 27 Feb 2013 23:03:01 GMT
6. How many bytes of content are being returned to your browser?
No relatorio de output, o campo coorespondete ao tamanho do conteudo de: Content-Length: 128
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, a janela de conteudo de pacotes est de encontro com a janela de conteudo bruto.
***************************************************************************************
-------------------------------------------------------------------------------------***************************************************************************************
De forma a responder ao segundo conjunto de perguntas, vou colocar os prints de forma a postriormente
conseguir referencia-los:
No.
Time
Source
8 2.331268
192.168.1.102
lab2-2.html HTTP/1.1
Destination
128.119.245.12
Frame 8: 555 bytes on wire (4440 bits), 555 bytes captured (4440 bits)
Ethernet II, Src: DellComp_4f:36:23 (00:08:74:4f:36:23), Dst: LinksysG_da:af:73 (00:06:25:da:af:73)
Internet Protocol Version 4, Src: 192.168.1.102 (192.168.1.102), Dst: 128.119.245.12 (128.119.245.12)
Transmission Control Protocol, Src Port: 4247 (4247), Dst Port: http (80), Seq: 1, Ack: 1, Len: 501
Hypertext Transfer Protocol
GET /ethereal-labs/lab2-2.html HTTP/1.1\r\n
[Expert Info (Chat/Sequence): GET /ethereal-labs/lab2-2.html HTTP/1.1\r\n]
[Message: GET /ethereal-labs/lab2-2.html HTTP/1.1\r\n]
[Severity level: Chat]
[Group: Sequence]
Request Method: GET
Request URI: /ethereal-labs/lab2-2.html
Request Version: HTTP/1.1
Host: gaia.cs.umass.edu\r\n
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01
\r\n
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/xmng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=0.1\r\n
Accept-Language: en-us, en;q=0.50\r\n
Accept-Encoding: gzip, deflate, compress;q=0.9\r\n
Accept-Charset: ISO-8859-1, utf-8;q=0.66, *;q=0.66\r\n
Keep-Alive: 300\r\n
Ficheiro: /home/marco/Documentos/UNI/Redes/trab3
Pgina 3 de 4
Connection: keep-alive\r\n
\r\n
[Full request URI: http://gaia.cs.umass.edu/ethereal-labs/lab2-2.html]
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------No.
Time
Source
Destination
Protocol Length Info
10 2.357902
128.119.245.12
192.168.1.102
HTTP
739
HTTP/1.1 200 OK (text/
html)
Frame 10: 739 bytes on wire (5912 bits), 739 bytes captured (5912 bits)
Ethernet II, Src: LinksysG_da:af:73 (00:06:25:da:af:73), Dst: DellComp_4f:36:23 (00:08:74:4f:36:23)
Internet Protocol Version 4, Src: 128.119.245.12 (128.119.245.12), Dst: 192.168.1.102 (192.168.1.102)
Transmission Control Protocol, Src Port: http (80), Dst Port: 4247 (4247), Seq: 1, Ack: 502, Len: 685
Hypertext Transfer Protocol
HTTP/1.1 200 OK\r\n
[Expert Info (Chat/Sequence): HTTP/1.1 200 OK\r\n]
[Message: HTTP/1.1 200 OK\r\n]
[Severity level: Chat]
[Group: Sequence]
Request Version: HTTP/1.1
Status Code: 200
Response Phrase: OK
Date: Tue, 23 Sep 2003 05:35:50 GMT\r\n
Server: Apache/2.0.40 (Red Hat Linux)\r\n
Last-Modified: Tue, 23 Sep 2003 05:35:00 GMT\r\n
ETag: "1bfef-173-8f4ae900"\r\n
Accept-Ranges: bytes\r\n
Content-Length: 371\r\n
[Content length: 371]
Keep-Alive: timeout=10, max=100\r\n
Connection: Keep-Alive\r\n
Content-Type: text/html; charset=ISO-8859-1\r\n
\r\n
Line-based text data: text/html
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------No.
Time
Source
Destination
Protocol Length Info
14 5.517390
192.168.1.102
128.119.245.12
HTTP
668
GET /ethereal-labs/
lab2-2.html HTTP/1.1
Frame 14: 668 bytes on wire (5344 bits), 668 bytes captured (5344 bits)
Ethernet II, Src: DellComp_4f:36:23 (00:08:74:4f:36:23), Dst: LinksysG_da:af:73 (00:06:25:da:af:73)
Internet Protocol Version 4, Src: 192.168.1.102 (192.168.1.102), Dst: 128.119.245.12 (128.119.245.12)
Transmission Control Protocol, Src Port: 4247 (4247), Dst Port: http (80), Seq: 502, Ack: 686, Len: 614
Hypertext Transfer Protocol
GET /ethereal-labs/lab2-2.html HTTP/1.1\r\n
[Expert Info (Chat/Sequence): GET /ethereal-labs/lab2-2.html HTTP/1.1\r\n]
[Message: GET /ethereal-labs/lab2-2.html HTTP/1.1\r\n]
[Severity level: Chat]
[Group: Sequence]
Request Method: GET
Request URI: /ethereal-labs/lab2-2.html
Request Version: HTTP/1.1
Host: gaia.cs.umass.edu\r\n
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01
\r\n
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/xmng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=0.1\r\n
Accept-Language: en-us, en;q=0.50\r\n
Accept-Encoding: gzip, deflate, compress;q=0.9\r\n
Accept-Charset: ISO-8859-1, utf-8;q=0.66, *;q=0.66\r\n
Keep-Alive: 300\r\n
Connection: keep-alive\r\n
If-Modified-Since: Tue, 23 Sep 2003 05:35:00 GMT\r\n
If-None-Match: "1bfef-173-8f4ae900"\r\n
Cache-Control: max-age=0\r\n
\r\n
[Full request URI: http://gaia.cs.umass.edu/ethereal-labs/lab2-2.html]
-----------------------------------------------------------------------------------------------------------
Ficheiro: /home/marco/Documentos/UNI/Redes/trab3
Pgina 4 de 4
----------------------------------------------------------------------------------------------------------No.
Time
Source
Destination
Protocol Length Info
15 5.540216
128.119.245.12
192.168.1.102
HTTP
243
HTTP/1.1 304 Not
Modified
Frame 15: 243 bytes on wire (1944 bits), 243 bytes captured (1944 bits)
Ethernet II, Src: LinksysG_da:af:73 (00:06:25:da:af:73), Dst: DellComp_4f:36:23 (00:08:74:4f:36:23)
Internet Protocol Version 4, Src: 128.119.245.12 (128.119.245.12), Dst: 192.168.1.102 (192.168.1.102)
Transmission Control Protocol, Src Port: http (80), Dst Port: 4247 (4247), Seq: 686, Ack: 1116, Len:
189
Hypertext Transfer Protocol
HTTP/1.1 304 Not Modified\r\n
[Expert Info (Chat/Sequence): HTTP/1.1 304 Not Modified\r\n]
[Message: HTTP/1.1 304 Not Modified\r\n]
[Severity level: Chat]
[Group: Sequence]
Request Version: HTTP/1.1
Status Code: 304
Response Phrase: Not Modified
Date: Tue, 23 Sep 2003 05:35:53 GMT\r\n
Server: Apache/2.0.40 (Red Hat Linux)\r\n
Connection: Keep-Alive\r\n
Keep-Alive: timeout=10, max=99\r\n
ETag: "1bfef-173-8f4ae900"\r\n
\r\n
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------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?
no
9. Inspect the contents of the server response. Did the server explicitly return the
contents of the file?
How can you tell?
Sim, apesar de no ter incluido no print, no "Line-based text data: text/html" conseguia-se ver os
conteudos.
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?
Sim. a informao : Tue, 23 Sep 2003 05:35:00 que a data da ultima modificao do fixeiro do ultimo
GET-REQIEST.
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.
O status code e phrase recebidas do servidor HTTP/1.1 304 Not
Modified. O servidor no returnou o conteudo do servidor, o browser pediu cache.