0% found this document useful (0 votes)
6 views

Lab2 Group8

Uploaded by

burizamon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Lab2 Group8

Uploaded by

burizamon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

VIETNAM NATIONAL UNIVERSITY HO CHI MINH CITY

UNIVERSITY OF INFORMATION TECHNOLOGY

REPORT
Lab 02: HTTP Protocol

Subject: Computer Network


Class: CS4283.P11.CTTT

GROUP MEMBERS (Group ID: 08):


Self-assessment
No. Name Student ID points
1 Phạm Ngọc Thiện 23521485
2 Nguyễn Thanh Quân 23521266
9.5

Total working time 3 hours

Quân – Task 1
Work assignment Thiện – Task 2

Comments (optional)
+ Troubles
+ Suggestions
+ Recommendations

1
Lab 02: HTTP Protocol
2

Table of Contents
A. DETAILED REPORT.......................................................................................................2
1. Task 1...............................................................................................................2
2. Task 2...............................................................................................................7
B. REFERENCES............................................................................................................10

A. DETAILED REPORT
1. Task 1
The result from Task1 in Wireshare file
1. My browser is running HTTP version 1.1 as shown in the picture.

The version of HTTP server being used is 1.1

2
Lab 02: HTTP Protocol
3

2:
Src: 192.168.38.38
Dst:192.168.38.97

3:
- Status code: 200 OK

3
Lab 02: HTTP Protocol
4

4:
Length: 400bytes

5:

4
Lab 02: HTTP Protocol
5
Last-Modified:Fri,18Oct202401:20:35GMT\r\n

6:
<center><img
src="http://www.celuit.edu.vn/sites/default/files/photos/large/202110/
kimg0816.jpg"/></center>\r\n
Member 1: 22321450 – Nguyen Duc Thanh
Member 2: 23520925 – Hoang Bao Minh

7:
Can not define

5
Lab 02: HTTP Protocol
6

8:
The process is as follows:
+The computer requests a file
+The server does the work of searching for the file. If the file is already in the
cache, it will be retrieved from the cache, but if the requested file is not actually in the
cache, it will continue.
+The server finds the file and returns it to the computer. - The computer
downloads the file and displays it to the user.
 The server responds.
 The server responds with the content of the HTML. Because before accessing
the website, we cleared the cache, so when we run the first GET Request to the
server, the file has not been saved in the cache, so the server will download the
file directly.

2. Task 2
a. Retrieving Long Documents
The result from Task2 in Wireshare file

6
Lab 02: HTTP Protocol
7
9. From the result, the browser sent one HTTP GET request message, which is
shown in packet number 188. This GET request is for the file /wireshark-labs/HTTP-
wireshark-file3.html
The GET message for the Bill of Rights is in packet number 188, as shown in the
first row in the following result.

10. The packet contains the status code and phrase which the server sent in
response to the GET message was packet number 194. The status code and phrase in
the response are:
Status code: 200
Phrase: OK
The status code “200 OK” is an HTTP response status code indicating that the
request from the client was successfully received, understood, and processed by the
server.
- 200: The server successfully found and processed the requested resource.
- OK: This phrase means that everything went as expect, and the requested
content is being sent back to the client
In this case, the HTTP GET request for the file /wireshark-labs/HTTP-wireshark-
file3.html was successfully handled, and the server responded with the requested
content.

7
Lab 02: HTTP Protocol
8

11. From the details of packet 194, we can see this line that mentions:
- 2 Reassembled TCP Segments (4861 bytes): #193(3900 bytes), #194 (961
bytes).
This means that two TCP segments (packet numbers 193 and 194) were needed
to carry the entire HTTP response, including the text of the Bill of Rights. These two
segments were reassembled to form the complete response.

b, HTTP Authentication

8
Lab 02: HTTP Protocol
9
The result from HTTP Authentication in Wireshark file.
12. The status code in the HTTP response corresponding to the first HTTP GET is
401 Unauthorized Required.
401 Unauthorized is an HTTP status code that means the page you are trying to
access cannot be loaded until you first log in with a valid user ID and password.

13. When my browser’s sends the HTTP GET message for the second time, the new
field that is now included is the authorization field. This is included because we sent
the server a username and password along with our request stating that we were
authorized to receive the page

9
Lab 02: HTTP Protocol
10

B. REFERENCES

10

You might also like