Re: webserver

From: Rob Kennedy (me_at_privacy.net)
Date: 04/08/04


Date: Wed, 07 Apr 2004 23:11:39 -0500

Richard Skinner wrote:
> I have an application that collects and analyzes data. I would like to
> create a web server to display the data. The data is not stored in a
> database, but simply resides in a memory array.
>
> The website would only be used by persons plugged in via a crossover cable
> or on our local network.
> I only need to display 1 page with the fields populated from data in my
> array.
>
> Which is the best tool or component to use to accomplish this in Delphi 6.

You could use the TIdHTTPServer component, part of the Indy suite. Indy
comes with Delphi, but you can get a more recent version from
http://www.indyproject.org/.

Since you only need to show one page, it should be very easy since you
won't have to interpret any of the HTTP requests your program gets --
you can send the same response no matter what URL is requested.

TIdHTTPServer would turn your program into a Web server. It would listen
to a port on your computer (port 80, by default) for connections from
clients, and in response, it would send HTML pages created based on your
data. Indy doesn't help you in creating or formatting the HTML, though;
it's strictly a socket library.

As for limiting access to your company LAN, I suspect that's a job for
the network administrator and a firewall.

-- 
Rob


Relevant Pages

  • Re: Display HTML in Applicaton Window
    ... I want to be able to read a local HTML file and display it in a browser window within my application. ... I also want to submit that page to my application and generate a "Post" to a web server and read the contents back and display back into the same browser window in my application. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: OT: HTML Problem -- anyone help?
    ... >> flaw of the HTML encoder or best practice for HTML? ... sending the same thing that they display. ... >> (for display in the browser vs. for sending a request to a web ... one is the way you talk to a web server, ...
    (soc.motss)
  • Re: The 2nd last ever php thread
    ... used to understand HTML ... - the web server recognises the .php file extension ... if found - the web server will examine and process the php code ... 'If the user is John then display Hi John, if the user is Fred then display Go away Fred' ...
    (uk.media.tv.misc)
  • Re: My very first php code
    ... HTTP status code are generated by the web server. ... These numeric codes are very important for the browser internals, but they aren't displayed to the user. ... If there was an error that prevents the page from being sent, the web server warns the browser with an error code and it also sends a web page with some information to be displayed to the user. ... However, the guys at Microsoft decided that _their_ browser would not display such page to the user under certain circumstances; instead, Internet Explorer would show its own error message. ...
    (comp.lang.php)
  • Re: wrong bloody time on dot Mac emails (american time)
    ... why did James email me at 4.30 am this morning. ... Their web server doesn't know what timezone your web browser is in, ... going to be hard to display a "local" time for you. ... mail (their local time), the times for whatever mail servers the mail went ...
    (uk.comp.sys.mac)