I'm trying to write a simplistic server that's launched by inetd. From a
user perspective it looks like this
http://localhost:60000/searchdir?pattern=ruby+dir=/usr/doc/ruby/manual
The point of this is to put a button in the toolbar of Netscape that
does some JavaScript twiddling (similar to what the Google buttons do)
and in effect connects to a "server" (my script) that searches the local
directory I'm currently viewing. (Yes, my firewall blocks port 60000!)
Now, I'd like to use the cgi class to parse the request for me. I read
the request from stdin with
rawrequest = $stdin.sysread(1024) # ordinary read seems to block
and feed it to
request = CGI.parse(rawrequest)
it doesn't produce a sensible result.
Michael
--
Michael Schuerig
mailto:schuerig / acm.org
http://www.schuerig.de/michael/