Include a CGI file in an ASP file?

B

Bill

How can I include a .cgi file in an .ASP file?

I've tried #include, Server.Transfer, and Server.Execute (yes, I know the last two are
only for ASP, but I tried it anyway).

If I have to, I guess I'll use ASPHTTP to do an http call to the file but first I wanted
to see if there was a more elegant way to do it...!

Is there an efficient way to include the output of a .cgi file in an ASP file?


Bill.
 
T

Tim Slattery

Bill said:
How can I include a .cgi file in an .ASP file?

I've tried #include, Server.Transfer, and Server.Execute (yes, I know the last two are
only for ASP, but I tried it anyway).

#include should suffice to suck *any* file into your ASP file. But
just what are you hoping to accomplish? A CGI file can be written in
*any* language. The CGI facility can call Perl scripts, Python
scripts, C or C++ programs, etc. etc. Simply including a Perl script,
for example, into your ASP page won't do any good, the ASP filter
won't have a clue what to do with it. If you want it to be executed
you'll have to do something else.
If I have to, I guess I'll use ASPHTTP to do an http call to the file but first I wanted
to see if there was a more elegant way to do it...!

I confess I don't know what ASPHTTP is. If it's a way of sending a
request to the server, then that's probably what you need to do.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top