Include a CGI file in an ASP file?

Discussion in 'ASP General' started by Bill, Jun 13, 2006.

  1. Bill

    Bill Guest

    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.
     
    Bill, Jun 13, 2006
    #1
    1. Advertisements

  2. Bill

    Tim Slattery Guest

    "Bill" <> wrote:

    >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.

    --
    Tim Slattery
    MS MVP(DTS)
     
    Tim Slattery, Jun 13, 2006
    #2
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Victor Bazarov

    #include "file" -vs- #include <file>

    Victor Bazarov, Mar 5, 2005, in forum: C++
    Replies:
    4
    Views:
    834
    Exits Funnel
    Mar 6, 2005
  2. PTM
    Replies:
    1
    Views:
    484
    Andy Dingley
    Nov 12, 2007
  3. naveeddil
    Replies:
    0
    Views:
    783
    naveeddil
    Jan 4, 2008
  4. Andreas Bogenberger
    Replies:
    3
    Views:
    1,291
    Andreas Bogenberger
    Feb 22, 2008
  5. Gregory A. Beamer

    Re: Include and Include File

    Gregory A. Beamer, Jul 28, 2009, in forum: ASP .Net
    Replies:
    2
    Views:
    533
    Gregory A. Beamer
    Jul 28, 2009
  6. Eric
    Replies:
    10
    Views:
    720
  7. Eric
    Replies:
    0
    Views:
    409
  8. me
    Replies:
    10
    Views:
    1,180
    ccc31807
    Mar 26, 2010
Loading...