[fpc-pascal] fpweb and reading the contents of a request

Michael Van Canneyt michael at freepascal.org
Mon Oct 17 16:33:50 CEST 2011



On Mon, 17 Oct 2011, Felipe Monteiro de Carvalho wrote:

> On Mon, Oct 17, 2011 at 4:11 PM, Michael Van Canneyt
> <michael at freepascal.org> wrote:
>> Ehm. I think that the problem is elsewhere. Content is only accepted with
>> the POST method.
>
> Why? Is this a limitation from HTTP?

Yes.

>
> If I change to POST then I can no longer select my module, neither
> "?module=MainPage" nor "/MainPage" worked. In fact then I get a very
> strange error message:
>
> Internal Server Error
> The server encountered an internal error or misconfiguration and was
> unable to complete your request.

You must specify an action. A single path component is treated as an action.
?module=MainPage&Action=MyAction


Michael.



More information about the fpc-pascal mailing list