Alvaro Lopez Ortega wrote:

  My understanding is that Cherokee can't do much on that.

  I usually have to spread awful things like this along the code I
  need to debug. :-(

    echo "<h1>I'm here: val=$val</h1>"; die;

I should be so lucky as to be a point where HTML can be delivered to the browser.

  Anyway, I know that Jonathan or Pablo are subscribed to the list,
  (they are the one of best web developers I have ever met..) so
  hopefully they will have some tricks and advices ;-)

well, my suggestion would be to place some sort of a "sniffer" between the CGI program and Cherokee. I know how to do that with a shell script. pita to setup and configure but not hideous:


#!/bin/bash

python ak404.py 2>/tmp/cgierror 1>/tmp/cgiout
cat /tmp/cgiout

which captured:

Status: 200
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd";>

<html>
<head>
<title>
404 - page does not exist: thriip
</title>


odd, very odd.  why should a 200 status be reported as a 500?

more debugging in a bit.

---eric
_______________________________________________
Cherokee mailing list
[email protected]
http://www.alobbs.com/cgi-bin/mailman/listinfo/cherokee

Reply via email to