- From: John Okoro <jokoro@cp10.es.xerox.com>
- Date: Fri, 9 Aug 1996 10:20:41 PDT
- To: Anselm Baird-Smith <abaird@w3.org>
- Cc: www-jigsaw@w3.org
Anselem, I was recently able to get the CGI script I sent you, to work with Jigsaw, under SunOS. The script was one I found on the Web, that was supposed to simply be placed in the cgi-bin along with it's accompanying library. Being rather new to CGI scripting, I had to do a good amount of reading to get it to work correctly. I hope this information is useful. The necessary changes (some of which would be obvious to someone familiar with CGI scripts) were as follows. 1. The accompanying library needed (cgi-lib.pl) to be modified to include path information (without viewing the library there is no way of knowing this, this was the most subtle problem). 2. The noheader attribute was set to false. 3. generates-form to true. 4. content-language needs to be set, in this case to perl. 5. Of course the command attribute must also be set with complete path information for the script. 6. I left the rest of the attributes at their default values. 7. An obvious problem was that I needed to use chmod to make the script executable. With these changes the script worked. However the script is supposed to display the content of the file that was uploaded, to the client browser, which it still does not do properly. Instead the name of the file and not it's contents are displayed. I think this has to do with the content-type header not matching up correctly in the server and the script. John Okoro. At 08:41 PM 8/8/96 PDT, you wrote: > >I have been working on the CgiResource, preparing it for the next >release. I know lots of people had trouble with it. > >I tried to run John Okorondudu <jokoro@cp10.es.xerox.com> perl script, >although I am not a perl hacker, I wasn;t able to make it run without >some modification. John, if you are still here, can you tell me if >this script has ever run on any server ? > >Also, I know people on OS/2 had a hard time with CGIs, I would like to >know if anything can be done to fix it (I can't remember if it was a >Java impl problem, or a Jigsaw problem). > >I wil try it myself on windows, and make sure it is able to do >something usefull there, if Mac people could provide some feedback it >would be nice. > >The most visible improvment I did to this resource, is to default >command[0] (the script path), to the resource path, which means that >you can now use the resource indexer, to declare all ".pl" files to be >exported by a CgiResource. > >Anselm. > > >
Received on Friday, 9 August 1996 13:29:13 UTC