Hello,
I pilfered the rtcFileProvider data module from the RTCWebServer demo for my own project. It is a Delphi back end with a TWebBrowser that needs to display web pages served up via a TRtcHttpServer. The web page will then use XMLRPC to talk to the Dephi application behind it.
I've modified the DataModuleCreate constructor as follows:
folder := 'c:\inetpub\wwwroot\';
filename := System.IOUtils.TPath.Combine(folder, 'index.html');
AddContentType('c,pas,asc,txt,ini=text/plain');
AddContentType('html,htm=text/html');
... etc ...
AddIndexPage(filename);
AddHost('localhost:8096=' + folder);
The application builds and runs but the web page doesn't show up in the embedded web browser.
When I type this into a web browser...
http://localhost:8096/index.htmlI get the text below and the browser just keeps spinning.
Your IP: 127.0.0.1
Server Time: 8:29:37 PM
Connection count: 4
Memory in use: 273.531 MB