Application Layer: Computer Networking: A Top Down Approach
Application Layer: Computer Networking: A Top Down Approach
Application Layer
time
6. Steps 1-5 repeated for each of 10
jpeg objects
~
~ entity body ~
~ body
URL method:
uses GET method
input is uploaded in URL
field of request line:
www.somesite.com/animalsearch?monkeys&banana
200 OK
• request succeeded, requested object later in this msg
301 Moved Permanently
• requested object moved, new location specified later in this msg
(Location:)
400 Bad Request
• request msg not understood by server
404 Not Found
• requested document not found on this server
505 HTTP Version Not Supported
Application Layer 2-16
Trying out HTTP (client side) for yourself
1. Telnet to your favorite Web server:
**Enable telnet in Windows opens TCP connection to port 80
telnet (default HTTP server port)
o gaia.cs.umass.edu 80 at gaia.cs.umass. edu.
anything typed in will be sent
to port 80 at gaia.cs.umass.edu