Recent

Author Topic: fcl-web on Microsoft's kernel mode HTTP(S) server  (Read 981 times)

PascalDragon

  • Full Member
  • ***
  • Posts: 206
  • Compiler Developer
fcl-web on Microsoft's kernel mode HTTP(S) server
« on: January 19, 2018, 11:21:27 pm »
In FPC revision 38013 I extended fcl-web with the support to use it together
with Microsoft's kernel mode HTTP(S) server (aka http.sys).

What does this mean? First of that doesn't mean that you're running
kernel mode code. Instead http.sys receives requests to the ports it
observes (depending on the registrations this will usually be 80 and
8080) and hands them to user mode code that in turn provides a response
that http.sys then sends to the client.
The advantage of this is that multiple applications can listen to port
80 or 8080 as long as they have different URLs and this also includes
IIS which uses http.sys as well! So you don't need to have IIS pass data
to your (F)CGI application, instead you can run completely independant
of that server.
The URLs for this need to be registered to http.sys by e.g. using "netsh
http add urlacl http://+:80/fpweb user=DOMAIN\User" (an alternative is
the configuration API of which the usage is shown here).
This allows user (or group) User to listen on the specified URL. In
addition to that one server queue (the handle one creates to interact
with http.sys) can also listen to multiple URLs at once (currently only
one server queue can be used with fcl-web, but multiple URLs can already
be used).
Additionally http.sys also supports client side SSL certificates (though
this is currently not supported by fcl-web).

I'd now ask those users of fcl-web that have access to Windows to test
their web applications with this backend so that bugs can be found and
fixed.

Thank you.

nummer8

  • New member
  • *
  • Posts: 46
Re: fcl-web on Microsoft's kernel mode HTTP(S) server
« Reply #1 on: November 28, 2018, 02:32:16 pm »
Hi,

Sorry to reply on an older topic.
Just curious.
Is anyone been successful in using the http.sys implementation?

Jos

nummer8

  • New member
  • *
  • Posts: 46
Re: fcl-web on Microsoft's kernel mode HTTP(S) server
« Reply #2 on: November 28, 2018, 03:54:00 pm »
Found the demo in fp-web/examples/echo/httpsys/  for http.sys implementation.   8)
Altered the routing to Application.LegacyRouting := True

Works like a charm.
Now further testing.

Jos