this makes sense, thanks.
joe
___ ___
__ | |_ __ __ | |_ __ __ _____ * Joseph Cheek, Director
/ _)| \ / _) / _)| _) / _) / \ | | * [EMAIL PROTECTED] or
( (_ | | |( _)( _)| \ _ ( (_ ( () )| |_| | * (877) CHEEK.COM
\__)|_|_| \__) \__)|_\_)(_) \__) \__/ |_| |_| * http://www.cheek.com/
Cheek Consulting, Seattle, provides Linux and Internet solutions
linux * web commerce * html * java * perl * php * informix * mysql
On Fri, 16 Apr 1999, Gilles Detillieux wrote:
> According to Joseph Cheek:
> > btw, i had no idea that htsearch could be called from the command line with
> > the $QUERY_STRING as arguments... is this documented? i knew from trial and
> > error that htsearch could be called from the command line, but could never
> > figure out its command-line arguments beyond the spartan help it gave.
>
> No, that's not quite right. When a CGI script is called with the GET
> method, the http server will partially parse the query string and pass it
> as one or more command line arguments to the script. This is to allow
> simple scripts to be written that just process their arguments, instead
> of doing the decoding of the query string. I think this was a logical
> extension of the old <ISINDEX> support.
>
> However, htsearch does not get its input variables from the command line
> arguments. If the environment variable REQUEST_METHOD is set to GET, it
> will get the query string from the environment variable QUERY_STRING.
> If REQUEST_METHOD is not set, it goes into query mode, and prompts the
> user for certain values. Otherwise, it assumes the POST method, gets the
> input size from the CONTENT_LENGTH env. variable, and reads that many
> bytes from the standard input (the socket from the HTTP connection).
>
> The only reason I suggested passing on command line arguments in the
> wrapper script is if you want to run htsearch in interactive mode, and
> run the wrapper rather than the real htsearch program. In this case,
> you may want to specify -v or -c conf options, which the wrapper should
> pass on to the real program. These are the only arguments htsearch uses,
> hence the spartan usage message.
>
> --
> Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]>
> Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil
> Dept. Physiology, U. of Manitoba Phone: (204)789-3766
> Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930
>
------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.