Chapter 24 Hypertext Transfer Protocol (HTTP)
CONTENTS <ul><li>HTTP TRANSACTION </li></ul><ul><li>REQUEST MESSAGE </li></ul><ul><li>RESPONSE MESSAGE </li></ul><ul><li>H...
HTTP uses the services of  TCP on well-known port 80.
HTTP TRANSACTION 24.1
Figure  24-1 HTTP transaction
Figure  24-2 Message categories
24.2 REQUEST MESSAGE
Figure  25-3 Request message
Figure  24-4 Request line
Figure  24-5 URL
RESPONSE MESSAGE 24.3
Figure  24-6 Response message
Figure  24-7 Status line Status code: Same format as FTP responses (three digits)
HEADER 24.4
Figure  24-8 Header format
Figure  24-9 Headers
EXAMPLES 24.5
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 HTM...
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 24.6
HTTP version 1.1  specifies a persistent  connection by default.
Upcoming SlideShare
Loading in …5
×

Ch24

295 views

Published on

Published in: Technology, Design
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
295
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Ch24

  1. 1. Chapter 24 Hypertext Transfer Protocol (HTTP)
  2. 2. CONTENTS <ul><li>HTTP TRANSACTION </li></ul><ul><li>REQUEST MESSAGE </li></ul><ul><li>RESPONSE MESSAGE </li></ul><ul><li>HEADER </li></ul><ul><li>EXAMPLES </li></ul><ul><li>SOME OTHER FEATURES </li></ul>
  3. 3. HTTP uses the services of TCP on well-known port 80.
  4. 4. HTTP TRANSACTION 24.1
  5. 5. Figure 24-1 HTTP transaction
  6. 6. Figure 24-2 Message categories
  7. 7. 24.2 REQUEST MESSAGE
  8. 8. Figure 25-3 Request message
  9. 9. Figure 24-4 Request line
  10. 10. Figure 24-5 URL
  11. 11. RESPONSE MESSAGE 24.3
  12. 12. Figure 24-6 Response message
  13. 13. Figure 24-7 Status line Status code: Same format as FTP responses (three digits)
  14. 14. HEADER 24.4
  15. 15. Figure 24-8 Header format
  16. 16. Figure 24-9 Headers
  17. 17. EXAMPLES 24.5
  18. 18. Example 1 This example retrieves a document. We use the GET method to retrieve an image with the path /usr/bin/image1.
  19. 19. Figure 24-10 Example 1
  20. 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. 21. Figure 24-11 Example 2
  22. 22. Example 3 In this example, the client wants to send input data to the server. We use the POST method.
  23. 23. Figure 24-12 Example 3
  24. 24. SOME OTHER FEATURES 24.6
  25. 25. HTTP version 1.1 specifies a persistent connection by default.

×