Bài giảng TCP/IP - Chapter 24: Hypertext Transfer Protocol (HTTP)

Tài liệu Bài giảng TCP/IP - Chapter 24: Hypertext Transfer Protocol (HTTP): Chapter 24HypertextTransfer Protocol(HTTP)CONTENTS HTTP TRANSACTION REQUEST MESSAGE RESPONSE MESSAGE HEADER EXAMPLES SOME OTHER FEATURESHTTP uses the services of TCP on well-known port 80.HTTPTRANSACTION24.1Figure 24-1HTTP transactionFigure 24-2Message categories24.2REQUEST MESSAGEFigure 25-3Request messageFigure 24-4Request lineFigure 24-5URLRESPONSEMESSAGE24.3Figure 24-6Response messageFigure 24-7Status lineStatus code: Same format as FTP responses (three digits)HEADER24.4Figure 24-8Header formatFigure 24-9HeadersEXAMPLES24.5Example 1This example retrieves a document. We use the GET method to retrieve an image with the path /usr/bin/image1. Figure 24-10Example 1Example 2This example retrieves information about a document. We use the HEAD method to retrieve information about an HTML document (see Chapter 25)Figure 24-11Example 2Example 3In this example, the client wants to send input data to the server. We use the POST method.Figure 24-12Example 3SOME OTHER FEATURES24.6HTTP version 1...

ppt25 trang | Chia sẻ: honghanh66 | Lượt xem: 834 | Lượt tải: 0download
Bạn đang xem trước 20 trang mẫu tài liệu Bài giảng TCP/IP - Chapter 24: Hypertext Transfer Protocol (HTTP), để tải tài liệu gốc về máy bạn click vào nút DOWNLOAD ở trên
Chapter 24HypertextTransfer Protocol(HTTP)CONTENTS HTTP TRANSACTION REQUEST MESSAGE RESPONSE MESSAGE HEADER EXAMPLES SOME OTHER FEATURESHTTP uses the services of TCP on well-known port 80.HTTPTRANSACTION24.1Figure 24-1HTTP transactionFigure 24-2Message categories24.2REQUEST MESSAGEFigure 25-3Request messageFigure 24-4Request lineFigure 24-5URLRESPONSEMESSAGE24.3Figure 24-6Response messageFigure 24-7Status lineStatus code: Same format as FTP responses (three digits)HEADER24.4Figure 24-8Header formatFigure 24-9HeadersEXAMPLES24.5Example 1This example retrieves a document. We use the GET method to retrieve an image with the path /usr/bin/image1. Figure 24-10Example 1Example 2This example retrieves information about a document. We use the HEAD method to retrieve information about an HTML document (see Chapter 25)Figure 24-11Example 2Example 3In this example, the client wants to send input data to the server. We use the POST method.Figure 24-12Example 3SOME OTHER FEATURES24.6HTTP version 1.1 specifies a persistent connection by default.

Các file đính kèm theo tài liệu này:

  • pptch24_0907.ppt
Tài liệu liên quan