Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 38300 invoked from network); 18 Jan 2000 17:17:37 -0000 Received: from unknown (HELO animas.unicen.edu.ar) (200.47.33.235) by 63.211.145.10 with SMTP; 18 Jan 2000 17:17:37 -0000 Received: from cobra.exa.unicen.edu.ar (cobra.exa.unicen.edu.ar [170.210.115.13]) by animas.unicen.edu.ar (8.8.8+Sun/8.8.8) with ESMTP id OAA22190 for ; Tue, 18 Jan 2000 14:13:00 -0300 (ARG) Received: from exa.unicen.edu.ar (sgi1 [170.210.115.2]) by cobra.exa.unicen.edu.ar (8.9.1b+Sun/8.9.1) with ESMTP id OAA09541 for ; Tue, 18 Jan 2000 14:17:59 -0300 (ARG) Sender: mochoa@cobra.exa.unicen.edu.ar Message-ID: <3884A041.7A3AF0C7@exa.unicen.edu.ar> Date: Tue, 18 Jan 2000 14:17:54 -0300 From: "Marcelo F. Ochoa" Organization: Fac. de Cs. Exactas - UNICEN X-Mailer: Mozilla 4.05 [en] (X11; I; IRIX 5.3 IP22) MIME-Version: 1.0 To: cocoon-dev@xml.apache.org Subject: Re: Proposal - HTTP headers processor References: Content-Type: multipart/mixed; boundary="------------F185DF1FC7632B2DB2904722" This is a multi-part message in MIME format. --------------F185DF1FC7632B2DB2904722 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Eric SCHAEFFER wrote: > Hi, > > After a short discussion with Stefano, I send to you a proposal for sending > HTTP headers dynamically : > > I write a small processor (based on the code of the DCPProcessor class) that > looks for a pi (mime is ) and if it finds it, > sends an HTTP redirect header to the client and stops the Cocoon processing > process. > To stop Cocoon, my processor just returns 'null' (and I modified the Engine > class to stop if null was returned). > > > What do you think about such a processor ? It can be a good feature to add > to Cocoon (I needed http redirect). I think that this processor could also > send other HTTP headers (as expiration times by example). In my experience of OraclePLSQL Producer, I need this header: WWW-authenticate: basic realm="String Realms" (ask to user DB username/password) Set-Cookie: "cookie spec" (Definition of client side cookies) Status: "Status info" (Definition of status line of browser) All header needs extra information like HTML page (probable a XML page transformed to HTML page with XSL procesor). > > > The only problem raised by this processor is the way to stop Cocoon. Stefano > suggested me to use a 'StopProcessingSignal'. It's surelly better than > returning 'null'... > > > Eric. > Marcelo. --------------F185DF1FC7632B2DB2904722 Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Marcelo F. Ochoa Content-Disposition: attachment; filename="vcard.vcf" begin: vcard fn: Marcelo F. Ochoa n: Ochoa;Marcelo F. org: Fac. de Cs. Exactas - UNICEN adr: Paraje Arroyo Seco;;Campus Univ.;Tandil;BA;7000;Argentina email;internet: mochoa@exa.unicen.edu.ar title: Enc. Lab. de Sistemas tel;work: +54-2293-444430 tel;fax: +54-2293-444430 tel;home: (celular) +54-2293-(15)-581089 note: Home Page x-mozilla-cpt: 170.210.115.2;2 x-mozilla-html: TRUE version: 2.1 end: vcard --------------F185DF1FC7632B2DB2904722--