Re: OT: Converting a ASP request to CGI?
Greetings. Thanks to all the respondednts - as it looks my original message was too terse, I'll try to clarify a bit. I have an app that already works on Apache CGI.pm, Apache::Registry and FastCGI. It also works under PWS/IIS as CGI - and I'll be testing it under AS's perlex shortly. At present, the first thing it does is use strict; use CGI; sub main { my $q=new CGI; #... } main(); 1; It then goes on to its errand, using $q, $q-param, $q-print to its heart content. I would like to plug it into IIS's ASP engine, ideally touching nary a line of code, something along the lines of: % @LANGUAGE = PerlScript use CGI:FromAsp; #our valiant package. my $q=CGI::FromAsp-new($Request); # # $q now looks and feels like a CGI. # also print (or $query-print) does the RIGHT THING, and %ENV is what # we'd expect it to be. # if ($q-isa('CGI')) { #it is.. $q-print($q-header(-type='text/html'); frobnicate($q); $q-print($q-end_html()); } else { print(h1CGI:FromAsp sucks like a tornado/h1\n); } % Because my current knowledge of ASP is pretty basic, I do not know if it's even possible... though it sure looks like it should be. Cheers, alf
OT: Converting a ASP request to CGI?
Greetings. I realize this is an Off-Topic with serious flamage potential, so I'll keep it very short. Is anybody aware of any module capable of doing for the ASP environment what Apache::Registry does for mod_perl? (i.e. making an asp request look and feel as if it were an old plain cgi-bin) Cheers, alf
Re: OT: Converting a ASP request to CGI?
Write an ASP page which then calls a CGI script. In file blah.asp: Dim param1, param2 param1 = Request.QueryString(param1) param2 = Request.QueryString(param2) Response.Redirect somewhere.cgi?param1= param1 param2= param2 ... and so on is one way to do it, if I understand what you are asking for. :) James Alessandro Forghieri wrote: Greetings. I realize this is an Off-Topic with serious flamage potential, so I'll keep it very short. Is anybody aware of any module capable of doing for the ASP environment what Apache::Registry does for mod_perl? (i.e. making an asp request look and feel as if it were an old plain cgi-bin) Cheers, alf
Re: OT: Converting a ASP request to CGI?
Alessandro Forghieri wrote: Greetings. I realize this is an Off-Topic with serious flamage potential, so I'll keep it very short. Is anybody aware of any module capable of doing for the ASP environment what Apache::Registry does for mod_perl? (i.e. making an asp request look and feel as if it were an old plain cgi-bin) If, you are talking about perl scripting ASP, then you can run that under Apache::ASP, check out http://www.apache-asp.org If you are talking about VBScript ASP, check out Chilisoft or Halcyon's Instant ASP. If you are talking about CGI scripts under Apache::ASP, just wrap them with % % and they should work. If something else, please clarify what you mean. -- Josh _ Joshua Chamas Chamas Enterprises Inc. NodeWorks Founder Huntington Beach, CA USA http://www.nodeworks.com1-714-625-4051