[erlang-questions] inets & EWSAP

Chandru chandrashekhar.mullaparthi@REDACTED
Fri Jan 18 18:17:14 CET 2008


On 18/01/2008, 001001 001011 <visionary_synthesis@REDACTED> wrote:
> Dear Erlang-Community!
>
> i have a very basic question regarding the
> EWSAPI. i was able to start the webserver
> from the inets-example directory and was
> served the index-page in the htdocs-folder.
>
> i created a link from the login page to my
> own .html file containing several forms
> (method=post) that are submitted.
>
> and now i'm stuck. what is the best way to
> create an entry point to the EWSAPI modules
> in order to handle the request?
>

In your configuration file for the inets application, include the
ErlScriptAlias directive and list all modules which are allowed to be
invoked via HTTP. Once that is done, and URL of the form:

http://server:port/cgi-bin/erl/Module/Function?args

will result in the function Module:Function/2 being invoked.

cheers
Chandru



More information about the erlang-questions mailing list