W3C home > Mailing lists > Public > ietf-http-wg-old@w3.org > January to April 2002

Re: How to make my application a server?

From: Rob J Meijer <rmeijer@xs4all.nl>
Date: Wed, 30 Jan 2002 14:43:22 +0100 (CET)
To: Viet Thang <thangpv@hoangphat.com.vn>
cc: HTTP MailingList <http-wg@hplb.hpl.hp.com>, http-wg@cuckoo.hpl.hp.com
Message-ID: <Pine.BSI.4.10.10201301430590.12927-100000@xs4.xs4all.nl>


On Wed, 30 Jan 2002, Viet Thang wrote:

> Hi all,
> I don't know it is a suitable group to ask you this question. But I hope someone of you can help me.
> In my application I would like to accept request from a web browser, process it upon the link and do something, for example  show a form, a message to user at server ( not to browser- it sends browser nothing). 
> 
> All ideas are appreciated 
> 
> thanks in advance!
> 

This flow seems flawed.
You either:

* Talk with the browser by letting your application be a simple webserver
  (probably on some non standard port)
Or:
* Put a small CGI on the server that proccesses the reqests from the
  client/browser, from this creates a request (for example a rpc call) to
  your application using whatever protocol you like (sunrpc,sysV IPC,
  XML-RPC, SOAP or whatever taste of IPC you, or the enviroment you wrote
  your application in is most comfortable with). Your application
  responds to the cgi, and the cgi processes your response and sends
  a suitable response to the client/browser.

In many cases making your application into a UDP based server on the same
host as the server (making UDP a reliable protocol what it otherwise is
not), and having a simple cgi (or server module if you expect heavy 
loads) convert the client's requests into simple UDP based request, and
converting the responses of your application in order to respond to the client.

Hope this helps.

Rob
Received on Wednesday, 30 January 2002 13:44:08 EST

This archive was generated by hypermail pre-2.1.9 : Wednesday, 24 September 2003 06:33:45 EDT