Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 80824 invoked from network); 27 Nov 2002 13:32:52 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 27 Nov 2002 13:32:52 -0000 Received: (qmail 1861 invoked by uid 97); 27 Nov 2002 13:33:30 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 1828 invoked by uid 97); 27 Nov 2002 13:33:29 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 1814 invoked by uid 98); 27 Nov 2002 13:33:29 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <007701c29619$318454a0$6bed4150@hypergeo.org> From: =?iso-8859-1?Q?C=E9dric_Viaud?= To: "Tomcat Users List" References: Subject: Re: Pb with HEAD request Date: Wed, 27 Nov 2002 14:30:46 +0100 Organization: Aptus MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 x-mimeole: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Kristj�n, in fact, i've first check the RFC of HTTP 1.1 (see after the mail what it says about HEAD command). So i've look to the servlet specification .And haven't seen the "doHead" method. Next to your reply , i've checked again, and discover that i MISSED it :-( So i've coded the "doHead" method , but it never seems to be called by my servlet. I can't manage to know if this is a client or a server issue. Anyone gets an idea. ? Anynyway, i think i will have to implement a cache , because some of my Get actions need many calculation, and doing this twice for the same request will decrease the application performance. Thanks for help, regards, C�dric ---------------------------------------------------------------------------- ---- >From RFC 2616 about HTTP 1.1 "9.4 HEAD The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response. 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 method can be used for obtaining metainformation about the entity implied by the request without transferring the entity-body itself. This method is often used for testing hypertext links for validity, accessibility, and recent modification. The response to a HEAD request MAY be cacheable in the sense that the information contained in the response MAY be used to update a previously cached entity from that resource. If the new field values indicate that the cached entity differs from the current entity (as would be indicated by a change in Content-Length, Content-MD5, ETag or Last-Modified), then the cache MUST treat the cache entry as stale." ----- Original Message ----- From: "Kristj�n Bjarni Gu�mundsson" To: "Tomcat Users List" Sent: Tuesday, November 26, 2002 4:40 PM Subject: Re: Pb with HEAD request You really should look into the servlet specification. I think if you override doHead for your servlet doHead(HttpServletRequest req, HttpServletResponse resp) Receives an HTTP HEAD request from the protected service method and handles the request. Default action for doHead is to simply call doGet C�dric Viaud wrote on 26.11.2002 15:32:45: > Hi, > I have Tomcat server 4.0.4 on NT 4 that contains a servlets in > charge to create SVG content. > The client is Internet Explorer 5.5. It loads the following simple HTML page : > > > Does someone know how to "configure" tomcat or anything else to > avoid the two executions ? > Thanks. -- To unsubscribe, e-mail: For additional commands, e-mail: