Presentation is loading. Please wait.

Presentation is loading. Please wait.

Web Client-Server Server Client Hypertext link TCP port 80.

Similar presentations


Presentation on theme: "Web Client-Server Server Client Hypertext link TCP port 80."— Presentation transcript:

1 Web Client-Server Server Client Hypertext link TCP port 80

2 HTTP The Hypertext Transfer Protocol (HTTP) is an application level protocol designed for distributed, collaborative, hypermedia information systems. –HTTP has been in use by the World Wide Web global information initiative since 1990. RFC1945 gives the specification for HTTP/1.0 –According to this RFC "This specification describes the features that seem to be consistently implemented in most HTTP/1.0 clients and servers.

3 HTTP HTTP builds on the discipline of reference provided by the Uniform Resource Identifier (RFC1630), as a location URL (RFC1738) or name URN (RFC1737). Messages are passed in a format similar to that used by Internet mail and the Multipurpose Internet Mail Extensions (MIME). HTTP is also used as a generic protocol for communication between user agents and proxies/gateways to other Internet protocols

4 Operation HTTP is based on a request/response paradigm –A client establishes a connection with a server and sends a request to the server. –The request is in the form of a request method, URI, and protocol version, followed by request modifiers, client information, and possibly body content. –The server responds with a status line, including the message's protocol version and a success or error code, followed by message Most HTTP communication is initiated by a user and consists of a request for some server.

5 The Web in Action parasite> telnet www.cs.rit.edu 80 Trying 129.21.30.29... Connected to spidey. Escape character is '^]'. GET / RIT Department of Computer Science <meta name="description" content="RIT, Department of Computer Science. Information on programs of study, how to contact faculty and staff, different department documents and references">

6 Identifying Resources The world wide web creates a world that consists of objects that can be accessed. –Most things in the web can change –The techniques used to create names and addresses used to identify objects must remain fixed A work is being done within the Internet community to provide a Universal naming scheme for objects. Three different names come up in these discussions: –URI (RFC1630), URL (RFC1738), URN (RFC1737)

7 HTTP Agents There are different agents involved in a transfer –A client is an application program that establishes connections for the purpose of sending requests –A server is an application program that accepts connections in order to service requests –A proxy is an program which acts as both a client and a server and makes requests on behalf of other clients. –A gateway is a server which acts as an intermediary for some other server. –A tunnel is an intermediary program which is acting as a blind relay between two connections.

8 Transport On the Internet, HTTP communication generally takes places over TCP/IP connections. –The default port is TCP 80, but other ports can be used. HTTP can be implemented on top of other transport protocols. –HTTP only assumes a reliable transport Current practice requires that the connection be established by the client prior to each request and closed by the server after sending the response.

9 HTTP Request Request-line Headers (0 or more) Body (only for a POST request) Request request-URI HTTP-version

10 Types of Requests Three requests are supported –GET Returns whatever information is defined by the URI –HEAD Only the server’s header information is returned –POST Used for posting mail, news, forms, …

11 HTTP Response Status-line Headers( 0 or more) body


Download ppt "Web Client-Server Server Client Hypertext link TCP port 80."

Similar presentations


Ads by Google