1 / 25

Chapter 24

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. 24.1. HTTP TRANSACTION. Figure 24-1. HTTP transaction. Figure 24-2.

juliet
Download Presentation

Chapter 24

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 24 Hypertext Transfer Protocol (HTTP)

  2. CONTENTS • HTTP TRANSACTION • REQUEST MESSAGE • RESPONSE MESSAGE • HEADER • EXAMPLES • SOME OTHER FEATURES

  3. HTTP uses the services of TCP on well-known port 80.

  4. 24.1 HTTP TRANSACTION

  5. Figure 24-1 HTTP transaction

  6. Figure 24-2 Message categories

  7. 24.2 REQUESTMESSAGE

  8. Figure 25-3 Request message

  9. Figure 24-4 Request line

  10. Figure 24-5 URL

  11. 24.3 RESPONSE MESSAGE

  12. Figure 24-6 Response message

  13. Figure 24-7 Status line Status code: Same format as FTP responses (three digits)

  14. 24.4 HEADER

  15. Figure 24-8 Header format

  16. Figure 24-9 Headers

  17. 24.5 EXAMPLES

  18. Example 1 This example retrieves a document. We use the GET method to retrieve an image with the path /usr/bin/image1.

  19. Figure 24-10 Example 1

  20. Example 2 This example retrieves information about a document. We use the HEAD method to retrieve information about an HTML document (see Chapter 25)

  21. Figure 24-11 Example 2

  22. Example 3 In this example, the client wants to send input data to the server. We use the POST method.

  23. Figure 24-12 Example 3

  24. 24.6 SOME OTHER FEATURES

  25. HTTP version 1.1 specifies a persistent connection by default.

More Related