Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Why does my html ACTION call merely display and not execute my scrip

From: kracik:mbox:dkm:cz at: 2-Mar-2001 12:21

Hi Michael, AFAIK all versions of IIS for Windows NT are configured with the management console. Only Personal Web Server (crippled IIS4 version) for Windows 9x needs configuration in the registry. Also, scripts don't have to be in cgi-bin directory if IIS recognizes them by .r suffix. I'd first suggest a simpler test than a POST request from HTML form. Here's how I set up REBOL as CGI on Windows 2000 Advanced Server with 64 MB memory: I made a simple script: ================== REBOL [] print "Content-Type: text/plain^m^j" print "hi" print mold system/options/cgi print system/version ================== saved it as C:\inetpub\wwwroot\cgi-test.r Then I configured the web server with the management console Control Panel->Administrative Tools->Internet Services Management according to the attached picture (Listar that runs the REBOL mailing list will probably strip the attachment so I CC it to you directly). Then I started Internet Explorer and typed http://127.0.0.1/cgi-test.r in the address bar. The script ran and gave this output: ================== hi make object! [ server-software: "Microsoft-IIS/5.0" server-name: "127.0.0.1" gateway-interface: "CGI/1.1" server-protocol: "HTTP/1.1" server-port: "80" request-method: "GET" path-info: "/cgi-test.r" path-translated: "c:\inetpub\wwwroot\cgi-test.r" script-name: "/cgi-test.r" query-string: none remote-host: "127.0.0.1" remote-addr: "127.0.0.1" auth-type: none remote-user: none remote-ident: none Content-Type: none content-length: "0" other-headers: ["HTTP_ACCEPT" {image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*} "HTTP_ACCEPT_LANGUAGE" "en-us" HTTP_CONNECTION "Keep-Alive" "HTTP_HOST" "127.0.0.1" "HTTP_USER_AGENT" {Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)} HTTP_ACCEPT_ENCODING "gzip, deflate"] ] 2.3.0.3.1 ================== So try this and if it will work, try a simple HTML form with ACTION="/cgi-test.r" Hope this helps, -- Michal Kracik Michael Harleman wrote:
> I have determined that some of the problems I have been having are a result > of run Windows 2000 Beta3 with only 64m of RAM. I now have shutdown several > of my processes which has resulted in a temporary fix. I have made the > changes to my registry, and entered the appropriate setting in IIS. My HTML > form ACTION call continues to only display the .r script and not run it. > Does anyone have any suggestions? I have received email from at least one > other person stating that he had the same trouble. > > Thanks to Scott, Andrew, and the rest of you, > > Mike > (Indiana) > ----- Original Message ----- > From: GS Jones <[gjones05--mail--orion--org]> > To: <[rebol-list--rebol--com]> > Sent: Sunday, February 25, 2001 4:48 PM > Subject: [REBOL] Re: Why does my html ACTION call merely display and not > execute my script? > > > From: Michael Harleman > > <snip> > > > Could the problem be that I am running Windows 2000 Professional Beta > > 3, > > > Frontpage 98 was installed, IIS was then installed, Frontpage 98 was > > then > > > removed with the Windows 2000 Remove wizard, Windows IIS component was > > > removed, Windows 2000 IIS was then reinstalled, and now I am finding > > > remnants of Frontpage 98 in Windows 2000 IIS(the wwwroot directory is > > still > > > there)? Is the only way to fix it to remove and then reinstall > > Win2000Pro > > > Beta 3? Must I be running a normal copy of Win2000Pro or > > Win2000Server? > > > Could I dump Win2000Pro Beta 3 and run Win NT 4.0 or can I continue to > > use > > > Win2000Pro Beta 3? Is it also possible that I have created the > > biggest mess > > > known to man on this planet? > > > > Hi, Mike, I can see that you've had a "fun" weekend. You've gone from > > trying to run a simple example REBOL cgi to discovering that you need to > > reload your OS!! > > > > Actually, I again have to claim ignorance of particulars of the > > NT/Win2000 line, but I can speak from experience on loading Microsoft > > Beta's on a "production" machine. Mine was a few years back with > > combination of Interdev, J++, and Frontpage. Within in short order, my > > registry and a number of directories were hopelessly mangled after a J++ > > crash. A day and a half later, I had everything back in working, > > including low level repiecing together of the more important files > > (backup?, what backup?). Like Poe's raven, I said, "Never more," at > > least not on a machine on which I rely (backup or not). I've been > > tempted to give the .NET beta a whirl, but then I break out in a sweat. > > > > So, it may not have been Microsoft's software's fault, but they seem to > > set up some of the most complicated sets of interdependencies I can > > imagine. So much for orthogonal programming. After hearing my story > > retold a thousand times over (read Jerry Pournelle of Byte!), I suspect > > that you'll need to reload the OS. But first, on Win95 and now 98 I > > always try uninstalling all the offending software. Checking > > Microsoft's site for recommendations on loading order and try reloading > > the software first. Good chance it may work, and a lot quicker than a > > full OS and software reload. > > > > That's my 2 cents, but what do I know? Good luck! > > --Scott > > > > -- > > To unsubscribe from this list, please send an email to > > [rebol-request--rebol--com] with "unsubscribe" in the > > subject, without the quotes. > > > > > > -- > To unsubscribe from this list, please send an email to > [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
-- Binary/unsupported file stripped by Listar -- -- Type: image/gif -- File: rebol-iis5.gif