Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to insert the output of a CGI into a page

0 views
Skip to first unread message

Raul Latashen

unread,
Dec 17, 2002, 6:26:28 PM12/17/02
to
Hello,

I've made a CGI application that consist of one
webmodule with several actions on it. Every action
has a different set of parameters.

I have uploaded and tested the application by
typing its URL directly, and it works fine.

Now I want to make a page that "calls" or "uses" that
application: I want that the the output of the application
(the application produces text or html) appears
inside of the page.

What I do not want is the user to be able to see
that the CGI.EXE is actually being called, nor the
parameters on which it's called.

I have tried SSI includes, and it works on executing a .EXE
and writing the output into the page, but I can't
put parameters in the include.

On the other hand, I have tried ASP, and I can't execute
the application and pass it parameters with something like:

dim wsh
set wsh = createobject("WScript.Shell")
wsh.run("CGI.EXE/mainAction?par1=2&par2=b")

and it works, it actually executes CGI.EXE... but the
output of the program is not inserted in the page.

Can please someone tell me how to
a) execute the program and be able to pass it parameters
b) That the output of the program be a part of the page
c) That the user don't see the call to the program.

Thanks in advance!

Raul


Dmeister

unread,
Dec 18, 2002, 6:08:20 AM12/18/02
to
You can write another ISAPI/CGI (let's call it "A") and drop an Indy http
component on the webmodule. "A" can then call the CGI that you developed
passing the necessary parameters via the Indy http component, get the
response, and pass it back to the client. In essence you've created a
non-standard based web-service (your original CGI) that you can call from a
web app like I described above or from a native client (GUI) via the same
approach of dropping an Indy component on your form.


"Raul Latashen" <ra...@reliable.com.ar> wrote in message
news:3dffb292$1...@newsgroups.borland.com...

0 new messages