Re: [htdig] htsearch returns garbage .. need help

Gilles Detillieux (
Wed, 20 Oct 1999 14:21:29 -0500 (CDT)

According to mick:
> first, i must admit that i'm still a linux newbie - and i'm bringing
> this up because i'm not sure if the problem i'm experiencing is a result
> of htsearch or if i've configured something incorrectly in apache.
> when i run htsearch at a basic prompt, it returns visably clean html.
> but when i try to pass it values from a web page (using the GET method,
> correct? the search.html file that comes with the distribution uses
> POST, which returns POST not supported for this URL ..) it returns
> gibberish.
> by gibberish, i mean:
> _11fstreambaseendl__FR7ostream__ls__7ostreamc__vt_3ios__ls__7ostreamPCvflush__
> 7ostream__rtti_usercin__rtti_si__check_eh_spec__vt_7istream.3ios__throw__ls__7
> ostreamPCc__deregister_frame_infoterminate__Fvgetline__7istreamPcic__cp_pop_ex
> and much, much more - this is one of the few chunks that doesn't have
> high-bit characters in it.
> anyhow, if someone can suggest what i'm doing wrong, it would be greatly
> appreciated.

On most Apache installations, by default, you must put CGI programs
in Apache's cgi-bin directory, or give the program name a .cgi suffix,
for the server to recognize the program as a CGI. Otherwise, instead of
running the program, it just returns the contents of the executable file.
Also make sure the program has execute permission on it.

Gilles R. Detillieux              E-mail: <>
Spinal Cord Research Centre       WWW:
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 containing the single word unsubscribe in the SUBJECT of the message.

This archive was generated by hypermail 2.0b3 on Sat Oct 23 1999 - 09:48:22 PDT