Can anyone explain why this HEAD request fails, when the same GET request succeeds? magnus@daysleeper magnus $ curl -I -s http://www.alvkarlebygk.com/index_html/document_view|head HTTP/1.1 404 Not Found Date: Wed, 21 May 2003 07:42:19 GMT Server: Zope/(Zope 2.6.1 (source release, python 2.1, linux2), python 2.1.3, freebsd4) ZServer/1.1b1 Bobo-Exception-File: /usr/home/alvkar/zope/261/lib/python/ZPublisher/HTTPResponse.py Content-Type: text/html;charset=iso-8859-15 Pragma: no-cache Etag: Last-Modified: Wed, 21 May 2003 07:42:19 +0000 Expires: Sat, 1 Jan 2000 00:00:00 GMT Bobo-Exception-Type: NotFound magnus@daysleeper magnus $ curl -s http://www.alvkarlebygk.com/index_html/document_view|head <!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" xml:lang="sv" lang="sv"> <head> <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-15" /> <title>Välkommen till Älvkarleby Golfklubb - Välkommen!</title> magnus@daysleeper magnus $ -- /Magnus
Magnus Heino wrote at 2003-5-21 09:43 +0200:
Can anyone explain why this HEAD request fails, when the same GET request succeeds? ... http://www.alvkarlebygk.com/index_html/document_view ....
A bug. Put it into the Collector: For "HEAD" requests, "ZPublisher.BaseRequest.BaseRequest.traverse" sets "no_acquire_flag=1". This prevents "document_view" from being acquired. As "index_html" does not have a "document_view" attribute, the request fails with a "NotFound" response. Dieter
participants (2)
-
Dieter Maurer -
Magnus Heino