[fpc-pascal] fpweb fcgi: auto shutdown feature

Bee Jay bee.ography at gmail.com
Sun May 30 14:10:24 CEST 2010

On 30 Mei 2010, at 19:06, Michael Van Canneyt wrote:

> But if you want it, it's really easy to do in fcl-web. Create a webmodule, implement the OnRequest handler of the module, and add
>  Application.Terminate:=True;
>  Handled:=True;
> in the handler. Then register the module with the name 'shutdown'.

Ok, thanks for the hint.

> Obviously, I'd add some security mechanism

Of course. Absolutely, Michael. :)

> But the url
> http://www.yourhost.com/shutdown?password=mysecret
> will still shutdown your app.

Plus SSL. ;)


More information about the fpc-pascal mailing list