On Wed, May 18, 2005 at 12:46:39AM +0200, David N. Welton wrote:
> >>>I have a directory with ErrorDocument 404 /feed/holder.rvt in .htaccess .
> >>>When I get a GET request, holder.rvt is launched and works fine.
> >>>But HEAD request gets 404 Not found response.
> >>>Is it an apache problem or rivet-specific? What to do?
> >>Looks as if it may indeed be a Rivet thing.  I see this in the code:
[skipped]
> >M_HEAD is not defined in apache includes. 
> Oops - indeed.
> I went back and thought about this, and everything is working as it should:
> [EMAIL PROTECTED]:~$ GET -s http://localhost/doesntexist
> 404 Not Found
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
>   <head>
> ...

Well, as for my case I use 
 headers numeric 200
, so maybe that's why I get an another result:

bash-2.05$ telnet teleboom.ru 80
Trying 217.16.26.184...
Connected to teleboom.ru.
Escape character is '^]'.
GET /feed/NzA5NTEwMjU2MTA_/timofeevgennadii-hozyaikabara.mid HTTP/1.0


HTTP/1.1 200 OK
Date: Wed, 18 May 2005 09:07:11 GMT
Server: Apache/1.3.33 (Unix) Rivet mod_ssl/2.8.22 OpenSSL/0.9.7d
Content-disposition: attachment; filename=timofeevgennadii-hozyaikabara.mid
Connection: close
Content-Type: audio/midi
[midi file follows]

and 

bash-2.05$ telnet teleboom.ru 80
Trying 217.16.26.184...
Connected to teleboom.ru.
Escape character is '^]'.
HEAD /feed/NzA5NTEwMjU2MTA_/timofeevgennadii-hozyaikabara.mid HTTP/1.0

HTTP/1.1 404 Not Found
Date: Wed, 18 May 2005 09:07:47 GMT
Server: Apache/1.3.33 (Unix) Rivet mod_ssl/2.8.22 OpenSSL/0.9.7d
Connection: close
Content-Type: text/html

Note not only 404, but text/html also - HEAD request was not handled ;-(

-- 
 DtZ (homepage:http://xepb.ru/dtz ,ICQ UIN:5132840,Fido: 2:5020/730)
jabber://[EMAIL PROTECTED] //HPG
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to