You are on page 1of 3

LABORATORY

1
ITT 557
HTTP PROTOCOL

NAME: __________________________________________________________________

STUDENT ID: ___________________________________________________________


LAB OBJECTIVES
At the end of this laboratory session, students should be able to:
i. List and differentiate HTTP methods type.
ii. List and describe fields in request and response headers.
iii. List and explain different type of status codes.

INSTRUCTION

HTTP HEADERS

1. Launch Google Chrome and open the following URL:

http://ali.uitm.edu.my/

2. We are going to use the developer tools to see the HTTP headers. Enable the
developer tools panel.

3. Select the network tab and reload the page.

4. Click on the index page.

5. How many requests were made?

6. How many requests were successful?

7. What is the total time needed to completely load the page?

8. Write down the Request headers

9. List another 5 HTTP request headers NOT in the above headers

10. Write down the Response headers

11. List another 5 HTTP request response NOT in the above headers

12. Click on style.css

13. What is the difference between the response header for the index page and
style.css?

2 | Mohd Ali Mohd Isa © 2021


14. Reload the page. Explain why it is faster to completely load the page the second time
even if the number of requests is the same. Justify your answer.

15. On the webpage, click on the tab About Me. Is the request header difference? List
down the differences.

16. Open the following URL:

https://ali.uitm.edu.my/?p=126

17. Enter any password into the password field and submit. Notice the resulting request
headers.

18. What is the difference between the request headers in Q17 and the request headers
in Q15?

STATUS CODES

19. Open the following URL:

https://ali.uitm.edu.my/?p=99999

20. What is the status code when accessing the above URL?

21. List down at least 3 categories of status codes.

22. List down at least 3 status codes for each category listed in Q21.

BONUS

23. Other than using browsers such as Mozilla Firefox and Google Chrome, we can also
use command or programming libraries for HTTP Protocols. If you have time, try
out the following two commands:

curl --head example.com.

wget --server-response --spider example.com

3 | Mohd Ali Mohd Isa © 2021

You might also like