Web Services using a TCP proxy server (Part 3 of 3) Last edited 2003-04-13 by Jay Nelson |
This tutorial demonstrates a simple, but non-trivial, example of a TCP proxy server using the OTP construct gen_server. The goal is to implement a process that can be used to deliver web services to HTML browsers. The source code is here.
This tutorial contains three parts:
- A generic TCP proxy server based on gen_server
- How to implement the ProxyModule interface
- A Web Service using the TCP proxy server
Please, report all errors, omissions or improvements to the
author.
- Description of a proxy server
- The proxy server interface
- The gen_server behaviour
- Architecting a server design
- Implementing gen_server callbacks
- Implementing the Accept Connection process
- ProxyModule explained
- Testing with an echo proxy server
- Echoing a browser request
- A proxy server to block websites
- Deploying Web Services
- Recognizing requests
- Extracting from web pages
- Synonym dictionary
- Pattern matching dictionary
- Zoning a page
- Pulling content from a zone
- Reconstructing web pages
|
This portion of the tutorial has not yet been written.
|
|