Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Jun : Simple HTTPServer Demo
| Subject: | Simple HTTPServer Demo |
| Posted by: | "Marion Smith" (msmi..@extremeprogrammers.com) |
| Date: | Mon, 11 Jun 2007 14:06:35 |
I am attempting to use the TIdHTTPServer and following instructions from the
book Mastering Delphi 6.
I have a form.
I added the TIdHTTPServer.
TIdHTTPServer.Active := True
TIdHTTPServer.DefaultPort := 8080
I created a simple response in OnCommandGet.
{
AResponseInfo.ContentType := 'text/HTML';
AResponseInfo.ContentText := '<html><body>Hello World</body></html>';
}
In my browser I go to URL http://localhost:8080/
It acts like it is going to work but then I get the "Internet Explorer
cannot display the webpage" message.
My debug break point doesn't fire either. I also but messages in the
OnConnect and OnCreateSession and they never fire either.
Any suggestions?