[Zope] HEAD method in 2.0.0b1

Brian Lloyd Brian@digicool.com
Tue, 3 Aug 1999 09:48:27 -0400


> I got this report from a reader of technocrat.net, who 
> complains that the
> HEAD method is returning results that are inconsistent with 
> the results from
> the GET method on the same URL. Is this a Zope problem or a 
> Squishdot problem?
> 
> 	Thanks
> 
> 	Bruce
> 
> From: Eric Moore <moore@lovecraft.chem.cmu.edu>
> Message-Id: <19990803042539.CA15DD3DC@lovecraft.chem.cmu.edu>
> 
> Now this one is bizarre :)
> 
> if i do a HEAD on 
> http://www.technocrat.net/933640798/addPostingForm I 
> get:
> lovecraft:~$ telnet www.technocrat.net 80
> Trying 216.15.108.186...
> Connected to TECHNOCRAT.NET.
> Escape character is '^]'.
> HEAD /933640798/addPostingForm HTTP/1.1
> Host: www.technocrat.net
> 
> HTTP/1.1 404 Not Found
> Date: Tue, 03 Aug 1999 04:30:12 GMT
> Server: Apache/1.3.6 (Unix) Debian/GNU
> Bobo-Exception-File: 
> /var/www/Zope-2.0.0b1-src/lib/python/ZPublisher/HTTPResponse.py
> Bobo-Exception-Line: 509
> Bobo-Exception-Type: NotFound
> Bobo-Exception-Value: <HTML> <HEAD><TITLE>Zope 
> Error</TITLE></HEAD> <BODY>  <TABLE BORDER="0" WIDTH="100%"> 
> <TR VALIGN="TOP">  <TD WIDTH="10%" ALIGN="CENTER"> &nbsp; 
> </TD>  <TD WIDTH="90%">   <H2>Zope Error</H2>   <P>Zope has 
> encountered an error while publishing this resource
> X-Powered-By: Zope (www.zope.org), Python (www.python.org)
> Content-Length: 1384
> Content-Type: text/html
> 
> 
> whereas a GET gives:
> 
> lovecraft:~$ telnet www.technocrat.net 80
> Trying 216.15.108.186...
> Connected to TECHNOCRAT.NET.
> Escape character is '^]'.
> GET /933640798/addPostingForm HTTP/1.1
> Host: www.technocrat.net
> 
> HTTP/1.1 200 OK
> Date: Tue, 03 Aug 1999 04:30:36 GMT
> Server: Apache/1.3.6 (Unix) Debian/GNU
> X-Powered-By: Zope (www.zope.org), Python (www.python.org)
> Content-Length: 12652
> Content-Type: application/octet-stream
> 
> <HTML>
> .........

Is 'addPostingForm' a Zope object (DTML Document / Method)
or a Python method? If it is a Python method, then I can
probably explain what's going on - otherwise I'm not so
sure, since I can't make a DTML Document or Method behave
like this on my b1 installation :(



Brian Lloyd        brian@digicool.com
Software Engineer  540.371.6909              
Digital Creations  http://www.digicool.com