CCL Home Page
Up Directory CCL t002.html

Jan K. Labanowski: "Tomcat, servlets, JSPs and other friends"


Hyper Text Transport Protocol

Protocol to move data between Web server and Web browser.
The Internet uses TCP/IP protocols. The Web uses sockets to communicate.
Socket: IP address + Port.
Each machine on the internet has an IP address (e.g., This IP address is augmented with another number called port. For example: (port is 80).
  • Server: a piece of software which perpetually "listens" to incoming connections on the given port. E.g.: Web Server, FTP server, Mail Server, SSHD server.
  • Client: a piece of software which is called by the user to connect to some port/server. E.g.: Web browser, telnet command (client), ftp client. ssh client.
Web server is an application, i.e., piece of software which performs some specific function. Exchanges between Web server and Web browser have to be done in a very specific format called HTTP (currently version 1.1). There is a precisely defined format for requests (i.e., stuff which browser sends to server), and responses (i.e., stuff which server returns to a browser). Requests and reponses consist of TOP LINE, HEADER and BODY. HEADER and BODY are separated by an empty line.

Modified: Tue Feb 12 20:32:42 2002 GMT
Page accessed 2341 times since Tue Feb 4 15:08:44 2003 GMT