Professional Documents
Culture Documents
server client
TCP/80
server client
TCP/80
server client
TCP/80
server client
TCP/80
server client
Two way
communications
TCP/80
Notes
After accept() returns a new socket
descriptor, I/O can be done using read() and
write()
Why does accept() need to return a new
descriptor?
Collective experiment
ping your_favorite_domain.foo
HTTP/1.0 HTTP/1.1
GET GET, POST, HEAD
POST PUT
HEAD Uploads file in entity
body to path
Asks server to
specified in URL
leave requested
field
object out of
response DELETE
Deletes file
specified in the URL
field
… lines
entity body
Post method
Web page often includes form of input
Input is uploaded to server in entity body
URL method
Uses GET method
Input is uploaded in URL field of request
line:
www.somesite.com/animalsearch?monkeys&banana