namazu-users-en
[Top] [All Lists]

[Namazu-users-en] Re: some queries failing (cgi)

2005-06-15 21:00:13

On Jun 14, 2005, at 12:03 PM, Chad Leigh -- Shire.Net LLC wrote:


On Jun 13, 2005, at 10:35 AM, Earl Hood wrote:


On June 13, 2005 at 09:51, "Chad Leigh -- Shire.Net LLC" wrote:



However, a term that fails always fails, and a term that
succeeds always succeeds.



I recommend use the namazu command-line search program.  This
way, if there are any errors, you will see them much easier
versus trying to debug things via the CGI program.


Hi

OK, I tried that I think (and I don't get any obvious errors).


I also ran the namazu.cgi from the commandline after setting the env  
variables QUESRY_STRING and SCRIPT_NAME .  I did not know what to set  
SCRIPT_NAME to so I set it to namazu.cgi .  I set QUERY_STRING so:

QUERY_STRING=query=shire&submit=Search% 
21&max=10&result=normal&sort=score
and
QUERY_STRING=query=chad&submit=Search%21&max=10&result=normal&sort=score

and did

% ./namazu.cgi

In both cases it gave a Content-type: text/html header, the requisite  
blankline to end the headers, and then the HTML for the results.  In  
both cases.  However, if I actually call it in apache the first one  
works and the second one gets premature end of headers error...

Very frustrating.  I do not know what to do.

Any help appreciated
Thanks
Chad


I do a

% namazu -F -h "chad" admin-list/

and it returns the search results

searching for "chad" from the web form gives the apache premature  
end of headers failure


I do a

% namazu -F -h "shire" admin-list/

and it returns the search results

searching for "shire" from the web form also returns the search  
results

The two cgi call URLs look the same except for the query

Here is a URL that succeeds

http://mailman.xxx.com/mailman/Admin-List/namazu.cgi?
query=shire&submit=Search%21&max=10&result=normal&sort=score

and one that fails

http://mailman.xxx.com/mailman/Admin-List/namazu.cgi?
query=chad&submit=Search%21&max=10&result=normal&sort=score

But from the command line both search terms seem to work.

What can I do to debug this?  Unfortunately the apache log or error  
log does not help me see what is being produced in the failure  
case.  It just says  "Premature end of script headers: /web/ 
xxxxxx.com/mailman/cgi-bin/Admin-List/namazu.cgi"

thanks
Chad




--ewh
_______________________________________________
Namazu-users-en mailing list
Namazu-users-en(_at_)namazu(_dot_)org
http://www.namazu.org/cgi-bin/mailman/listinfo/namazu-users-en



---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad(_at_)shire(_dot_)net




---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad(_at_)shire(_dot_)net


_______________________________________________
Namazu-users-en mailing list
Namazu-users-en(_at_)namazu(_dot_)org
http://www.namazu.org/cgi-bin/mailman/listinfo/namazu-users-en