[mod_python] Strange HTTP Response

Iwasso 80s iwasso80s at gmail.com
Thu Sep 29 12:14:59 EDT 2005


We aren't using the publisher handler.  However, we are returning
apache.OK as a response to the handler call.  Should we be returning
something else?

Also, I captured a "good" response.  And I noticed it does contain
more data than purely the header and html body of the document.

START OF DOCUMENT:
---------------------------------------------------------------------------------------------------------------------
HTTP/1.1 200 OK
Date: Thu, 29 Sep 2005 16:07:44 GMT
Server: Apache/2.0.54 (Debian GNU/Linux)
Pragma: no-cache
Cache-Control: no-cache
Expires: -1
Keep-Alive: timeout=7, max=29
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html

1

144d

	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
---------------------------------------------------------------------------------------------------------------------


END OF DOCUMENT:
---------------------------------------------------------------------------------------------------------------------
</html>


1

0
---------------------------------------------------------------------------------------------------------------------

What do you guys think?  Is this normal behavior?

Thanks again for your time.

On 9/29/05, Gregory (Grisha) Trubetskoy <grisha at modpython.org> wrote:
>
> On Thu, 29 Sep 2005, Robert Brewer wrote:
>
> > Iwasso 80s wrote:
> >> If you aggressively click around our site one of two things
> >> will often happen: the body of the page will return "0" as
> >> the entire result set of the request; or it will return "0"
> >> followed by what appears to be the header data (see
> >> attached gif).
> >
> > Quick guess:
> >
> > apache.py, line 820
> > OK = REQ_PROCEED = 0
> >
> > Somehow that value, which is usually returned from a request handler, is being written out.
>
> Which will for example happen if you use the publisher and
>
>      return apache.OK
>
>
> Grisha
>



More information about the Mod_python mailing list