Yes as I thought. Ok wel I will take a look at that for sure.
 
Thanks, Jeremy Coulter
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Nello Sestini
Sent: Monday, 18 June 2001 10:03
To: Multiple recipients of list delphi
Subject: Re: [DUG]: RE: Calling CGI apps

CGI apps are console programs that get their input via environment variables
(e.g. QUERY_STRING and PATH_INFO) and write their (html) output to STDOUT
 
So you need to put stuff into environment variables and then use CreateProcess
or ShellExecute to run your app - piping back the output to your server app.
 
But since you're in complete control of both the "webserver" and the CGI app
you could handle this any way you want - there's no need to follow CGI rules
unless you have some other reason for wanting the server app to be CGI.
 
-ns
----- Original Message -----
Sent: Monday, June 18, 2001 4:41 AM
Subject: [DUG]: RE: Calling CGI apps

HI all.

Ok, I dont think I made my question very clear...heres a revamped version.
I have an app that runs as a normal app, but also has a component in it
that is an HTTP server component. The reason being for remote administration via port 80.
The machine it runs on DOESN'T have IIS or PWS or Apache or ANYOTHER webserver on it.
Therefore, when i goto http://localhost/admin the application itself loads the main admin page.

Ok, no, what I am trying to do is avoid Bloat in this application, and want to beable to put the logic
into a CGI app, and have teh application call it when it gets asked to on port 80.
Does any one know how I can do this ? I realize that if I make a CGI app. in Delphi,
that when you run it, it will output the outut to a commandline...do I have to look at that ?

Thanks, Jeremy Coulter

 

Reply via email to