[Lazarus] New application type: HTTP standalone server

ABorka fpc-devel at aborka.com
Fri Jun 3 09:50:24 CEST 2011


>> On 6/2/2011 10:46, Leonardo M. Ramé wrote:
>>> Michael, I added a webmodule to testhttp and got two problems.
>>>
>>> 1 - Could not determine HTTP module for request "". Even if I call it
>>> the same way as I use with fpCGI and fpEmbWeb.
>>
>> This error usually happens when the project main program does not have
>> the webmodule unit in it's uses statement.
>
> I managed to reproduce the error; The error is only apparent if there are
> multiple modules registered. I committed a fix in 17647.
>
> This raises the question again of the FPWeb behaviour for
>
> http://somehost/path
>
> Now, 'Path' is interpreted as the name of the action for the default
> module.
>
> For an embedded server, this is not logical. This should be the module
> name, not the action name.
>
> Michael.

I disagree. The vast majority of web applications do not need multiple 
web modules (usually the default module is used), but they use multiple 
actions.
Therefore, action names should have priority over module names if only 
one of them is passed.

AB





More information about the Lazarus mailing list