From: Rob McCool <robm@netscape.com> Newsgroups: netscape.devs-nsapi Subject: Re: Calling CGI from NSAPI Date: Wed, 23 Oct 1996 18:58:26 -0700 Raghavan wrote: > Is there a way to call a CGI script from NSAPI ?. The NSAPI would be > used to capture user authentication info and pass the info to a CGI > script to handle the actual authentication. > > Any thoughts would be appreciated.You can change the path in rq->vars to your CGI program, create a new pblock with fn=send-cgi in it, and then call func_exec, but if you do that, the CGI output will be sent to the client. You can get around that problem, but it might be easier just to execute the program yourself using fork/exec or CreateProcess.
-- Rob McCool, robm@netscape.com http://home.netscape.com/people/robm/ Stunt Programmer, Netscape Communications Corporation It was working ten minutes ago, I swear...Reproduced by permission of the author.