Long description

Back

A browser window is shown at the top left of the figure. A request is sent from the browser to the server placed at the bottom right of the figure. Note: Every H T T P request or response happens across a single port.

The request consists of 5 lines of text with a heading that reads, GET forward slash index dot h t m l H T T P forward slash 1 point 1. Line 1: Host colon example dot com. Line 2: User hyphen Agent colon Mozilla forward slash 5 point 0. Line 3: Accept colon text forward slash h t m l. Line 4: Connection colon keep hyphen alive. Line 5: Cache hyphen Control colon max hyphen age equals 0. Lines 1 to 5 represent the request headers.

The server sends a response to the browser window.

The response consists of 9 lines of text with a heading that reads, H T T P forward slash 1 point 1 200 O K. Line 1: Date colon Mon, 23 Oct 2017. Line 2: Server colon Apache. Line 3: Vary colon Accept hyphen Encoding. Line 4: Content hyphen Encoding colon g zip. Line 5: Content hyphen Length colon 4538. Line 6: Connection colon close. Line 7: Content hyphen Type colon text forward slash h t m l. Line 8: open angle bracket h t m l close angle bracket. Line 9: open angle bracket head close angle bracket ellipsis. Lines 1 to 7 represent the response headers.

Back