I just tested HEAD with a CGI and its behaviour is the same from 1.3.2X and 2.0.43
Notice the ETag: line which I have the CGI emit.  This is proof that the cgi is being 
run.

apache2.0.43:
  [root@linux11 htdocs]# telnet linux11 80
  Connected to linux11.
  Escape character is '^]'.
  HEAD /a.cgi HTTP/1.0

  HTTP/1.1 200 OK
  Date: Fri, 10 Jan 2003 15:43:57 GMT
  Server: Apache/2.0.43 (Unix)
  ETag: 1042213437
  Connection: close
  Content-Type: text/html; charset=ISO-8859-1

apache1.3.X:
  Ibmx-> /wic/web/dietz> telnet ibmx 80
  Connected to ibmx.
  Escape character is '^]'.
  HEAD /dietz/a.cgi HTTP/1.0

  HTTP/1.1 200 OK
  Date: Fri, 10 Jan 2003 15:41:11 GMT
  Server: Apache/1.3.22 (Unix) mod_ssl/2.8.5 OpenSSL/0.9.6c
  ETag: 1042213272
  Connection: close
  Content-Type: text/html


> -----Original Message-----
> From: Martin Kutschker [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, January 10, 2003 3:01 AM
> To:   [EMAIL PROTECTED]
> Subject:      CGIs and HEAD requests
> 
> Hi!
> 
> Is it possible for a CGI to handle HEAD requests? Mozilla uses HEAD for it's 'save 
>link target' feature, which 'breaks' my web app - annoyingly every file (suggested to 
>be downloaded) gets a .html extension as Apches 1.3 sends the default mime type.
> 
> Is there a way to solve this problem in 1.3 or 2.0? If not should/could be done 
>something about it?
> 
> Masi 

Reply via email to