Return-Path: Delivered-To: apmail-tcl-rivet-dev-archive@www.apache.org Received: (qmail 2090 invoked from network); 24 Feb 2007 00:47:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Feb 2007 00:47:04 -0000 Received: (qmail 55836 invoked by uid 500); 24 Feb 2007 00:47:13 -0000 Delivered-To: apmail-tcl-rivet-dev-archive@tcl.apache.org Received: (qmail 55818 invoked by uid 500); 24 Feb 2007 00:47:13 -0000 Mailing-List: contact rivet-dev-help@tcl.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list rivet-dev@tcl.apache.org Received: (qmail 55806 invoked by uid 99); 24 Feb 2007 00:47:12 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Feb 2007 16:47:12 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [160.78.48.164] (HELO dedalo.cce.unipr.it) (160.78.48.164) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Feb 2007 16:47:00 -0800 Received: from schumann.biol.unipr.it (schumann.biol.unipr.it [160.78.37.2]) by dedalo.cce.unipr.it (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id l1O0kOm8007878; Sat, 24 Feb 2007 01:46:24 +0100 Received: from www-data by schumann.biol.unipr.it with local (Exim 4.50) id 1HKl3Q-0004mO-8B; Sat, 24 Feb 2007 01:46:24 +0100 Received: from ppp-82-84-84-40.dialup.tiscali.it (ppp-82-84-84-40.dialup.tiscali.it [82.84.84.40]) by ssl.biol.unipr.it (IMP) with HTTP for ; Sat, 24 Feb 2007 01:46:24 +0100 Message-ID: <1172277984.45df8ae0308b8@ssl.biol.unipr.it> Date: Sat, 24 Feb 2007 01:46:24 +0100 From: Massimo Manghi To: David Welton Cc: rivet-dev@tcl.apache.org Subject: Re: manipulating http headers with rivet References: <45D9890C.6000700@biol.unipr.it> <9877cd600702190540v939186dra442978bd60b2200@mail.gmail.com> <45D9DF67.2050700@biol.unipr.it> <9877cd600702191301o201c1cfam729e80a6dd10b4ce@mail.gmail.com> In-Reply-To: <9877cd600702191301o201c1cfam729e80a6dd10b4ce@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.6 X-Originating-IP: 82.84.84.40 Sender: www-data X-CCE-UniPR-MailScanner-Information: CCE X-CCE-UniPR-De-MailScanner: Found to be clean X-CCE-UniPR-De-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.399, required 4, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -2.60) X-CCE-UniPR-MailScanner-From: www-data@biol.unipr.it X-Virus-Checked: Checked by ClamAV on apache.org Eventually I had the time and the calm necessary to spend a couple of hours on the problems of the headers not being set. I can download the files but in a unelegant way because ther's no way to suggest their original name to the browser's download manager and pdf docs don't get the pdf viewer run at all. I tried to debug apache in the process of serving my trivial download script. I did the homework David assigned to me and I put some printf(stderr,"...") in the various branches of the switch structure in Rivet_Headers. What I found out is one simple and expected fact: 'Rivet_Headers' is actually called in the process of executing the script by every 'headers' command and the arguments to that function calls are correct. (I also learn that I could not rely safely to HEAD utility in order to understand what headers the server would have sent to the browser) Being allowed to put breakpoint and see the source code would help but I had a complaint by gdb which is unable to locate RivetCore.c. This is a different problem though. -- M Quoting David Welton : > This works for me with a relatively up to date Rivet: > > headers type "text/plain" > puts "hello world" > ?> > > I'm not sure what problems it might have... you have to make sure the > headers haven't already been sent over the wire when you do 'headers > type', but I can't think of much else... > > -- > David N. Welton > - http://www.dedasys.com/davidw/ > > Linux, Open Source Consulting > - http://www.dedasys.com/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org > For additional commands, e-mail: rivet-dev-help@tcl.apache.org > > -- Massimo Manghi ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. ---------------------------------------------------------------- Imp3 - Webmail del Dipartimento di Biologia Evolutiva e Funzionale --------------------------------------------------------------------- To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org For additional commands, e-mail: rivet-dev-help@tcl.apache.org