Total Knowledge: CPPSERV: Documentation: Communications protocol

CPPSERV: Documentation: Communications protocol


Home Projects Jobs Clientele Publishing Contact

Web server <-> application server communication

Communication protocol between web server and application server is fairly simple:

  • Web server receives HTTP request
  • Web server connects to the servlet engine
  • Web server sends Servlet name, which it figures out through its own mapping system, followed by newline character
  • Web server sends request line, followed by newline character
  • Web server sends request headers, followed by empty line
  • Web server sends request body
  • Web server shuts down writing side of its socket
  • Web server reads servlet output and processes it, just like it would do with any CGI script

SourceForge.net Logo

Authoright © Total Knowledge: 1999-2013