TAILIEUCHUNG - Lecture TCP-IP protocol suite - Chapter 24: Hypertext Transfer Protocol (HTTP)

The Hypertext Transfer Protocol (HTTP) is a protocol used mainly to access data on the World Wide Web. HTTP functions like a combination of FTP and SMTP. This chapter provides knowledge of Hypertext Transfer Protocol (HTTP): HTTP transaction, request message, response message, header, examples, some other features. | Chapter 24 Hypertext Transfer Protocol (HTTP) CONTENTS HTTP TRANSACTION REQUEST MESSAGE RESPONSE MESSAGE HEADER EXAMPLES SOME OTHER FEATURES HTTP uses the services of TCP on well-known port 80. HTTP TRANSACTION Figure 24-1 HTTP transaction Figure 24-2 Message categories REQUEST MESSAGE Figure 25-3 Request message Figure 24-4 Request line Figure 24-5 URL RESPONSE MESSAGE Figure 24-6 Response message Figure 24-7 Status line Status code: Same format as FTP responses (three digits) HEADER Figure 24-8 Header format Figure 24-9 Headers EXAMPLES Example 1 This example retrieves a document. We use the GET method to retrieve an image with the path /usr/bin/image1. Figure 24-10 Example 1 Example 2 This example retrieves information about a document. We use the HEAD method to retrieve information about an HTML document (see Chapter 25) Figure 24-11 Example 2 Example 3 In this example, the client wants to send input data to the server. We use the POST method. Figure 24-12 Example 3 SOME OTHER FEATURES HTTP version specifies a persistent connection by default.

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.