[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#381570: marked as done (HEAD does not serve <meta http-equiv> headers)



Your message dated Sat, 5 Aug 2006 16:56:51 +0100
with message-id <20060805155651.GA16961@lapse.madduck.net>
and subject line libwww-perl is at fault
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: apache2
Version: 2.0.55-4
Severity: minor

RFC 2616 says:

   "The metainformation contained in the HTTP headers in response to
   a HEAD request SHOULD be identical to the information sent in
   response to a GET request."

This is not the case in apache2 (up to and including 2.2.3). If
I fire off a GET request, I get the HTTP response headers, plus the
ones added by the CGI or <meta http-equiv> for static files. If
I just fire a HEAD request, only the apache-generated headers are
served. It seems as if apache2 does not actually look at the
file/content to serve, it just provides the meta information (like
size), along with some defaults (text/html).

lapse:~> (HEAD http://martin-krafft.net/phd/;
          GET -esd http://martin-krafft.net/phd/) \
            | egrep '^(..[[:upper:]]|Content-Type)' 
HEAD http://martin-krafft.net/phd/
Content-Type: text/html
GET http://martin-krafft.net/phd/
Content-Type: text/html
Content-Type: application/xhtml+xml; charset=utf-8

I am only making this a minor bug because the RFC only says SHOULD.
Damn RFC. :)

-- 
Please do not send copies of list mail to me; I read the list!
 
 .''`.     martin f. krafft <madduck@debian.org>
: :'  :    proud Debian developer and author: http://debiansystem.info
`. `'`
  `-  Debian - when you have better things to do than fixing a system

Attachment: signature.asc
Description: Digital signature (GPG/PGP)


--- End Message ---
--- Begin Message ---
Sorry for this bug report. libwww-perl was smarter than I thought...
Using netcat shows that apache2 is already doing the right thing:

diamond:~> nc martin-krafft.net 80 <<_eof | sed -rne '0,/^[[:space:]]*$/{/^Date:/d;p}' | md5sum     
GET /phd/ HTTP/1.1
Host: martin-krafft.net
    
_eof           
28149a1d07bf15a566bf12f98aa1b421  -

diamond:~> nc martin-krafft.net 80 <<_eof | sed -rne '0,/^[[:space:]]*$/{/^Date:/d;p}' | md5sum
HEAD /phd/ HTTP/1.1 
Host: martin-krafft.net
    
_eof
28149a1d07bf15a566bf12f98aa1b421  -

-- 
Please do not send copies of list mail to me; I read the list!
 
 .''`.     martin f. krafft <madduck@debian.org>
: :'  :    proud Debian developer and author: http://debiansystem.info
`. `'`
  `-  Debian - when you have better things to do than fixing a system

Attachment: signature.asc
Description: Digital signature (GPG/PGP)


--- End Message ---

Reply to: