[BUG]? problems with headers, mod_filter and mod_perl-1.24_01
Hello, I had troubles with a specific mod_perl + mod_filter config. With this conf everything was ok at home for my tests; but headers broke on the production server (In fact a test server for dev team). Eventually, I identified that troubles come from mod_perl-1.24_01 (I guess...). So, I reinstalled mod_perl-1.24 on this server, and everything seems to be ok for now. Here is two outputs (home and prod server), the conf is for both : - PerlSendHeader Off - FilterHeader On (for mod_filter) The request is on an Apache::Registry script (named script.cgi) redirecting on a php script (named script.phtml), setting the cookie in the meantime. |- HOME -- mod_perl-1.24 [pop@endymion:~]$ telnet vh.test.com 8000 Trying 127.0.0.1... Connected to vh.test.com. Escape character is '^]'. GET /script.cgi?url=script.phtmltype=COOKIEPRODBlogin=totopassword=foobar HTTP/1.1 Host: vh.test.com HTTP/1.1 302 Found Date: Mon, 13 Nov 2000 02:39:20 GMT Server: Apache/1.3.12 (Unix) mod_filter/1.1 PHP/4.0.2 mod_perl/1.24 Set-Cookie: COOKIEPRODB=Cookiesdh45g5v7d8ca951Ref2110; domain=.test.com; path=/; expires=Mon, 13-Nov-2000 05:26:07 GMT location: script.phtml Connection: close Content-Type: text/html; charset=ISO-8859-1 HTTP/1.1 302 Found Date: Mon, 13 Nov 2000 02:39:20 GMT Server: Apache/1.3.12 (Unix) mod_filter/1.1 PHP/4.0.2 mod_perl/1.24 Set-Cookie: COOKIEPRODB=Cookiesdh45g5v7d8ca951Ref2110; domain=.test.com; path=/; expires=Mon, 13-Nov-2000 05:26:07 GMT Set-Cookie: COOKIEPRODB=Cookiesdh45g5v7d8ca951Ref2110; domain=.test.com; path=/; expires=Mon, 13-Nov-2000 05:26:07 GMT Set-Cookie: COOKIEPRODB=Cookiesdh45g5v7d8ca951Ref2110; domain=.test.com; path=/; expires=Mon, 13-Nov-2000 05:26:07 GMT location: script.phtml Connection: close Content-Type: text/html; charset=ISO-8859-1 |- PROD --- mod_perl-1.24_01 [pop@endymion:~]$ telnet vh.prodserver.net 8000 Trying xx.xx.xx.xx... Connected to vh.prodserver.net. Escape character is '^]'. GET /script.cgi?url=script.phtmltype=COOKIEPRODBlogin=totopassword=foobar HTTP/1.1 Host: vh.test.net HTTP/1.1 302 Found Date: Mon, 13 Nov 2000 00:39:26 GMT Server: Apache/1.3.14 (Unix) mod_filter/1.1 PHP/4.0.3pl1 mod_perl/1.24_01 Transfer-Encoding: chunked Content-Type: text/html; charset=iso-8859-1 12f !DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN" HTMLHEAD TITLE302 Found/TITLE /HEADBODY H1Found/H1 The document has moved A HREF=""here/A.P HR ADDRESSApache/1.3.14 Server at A HREF="mailto:web2master@server"vh.prodserver.net/A Port 8000/ADDRESS /BODY/HTML 0 [ HELD during few seconds !] |-- END I didn't manage to go further because of my newbie-ness in this domain :( If it's a feature, then please tell me were I'm wrong. Regards, Yann Kerhervé
Re: Question
On Tue, Sep 12, 2000 at 04:34:28PM +0100, David Hodgkinson wrote: "Eric Cholet" [EMAIL PROTECTED] writes: well then we're a long shot away, and so are many French natives :) Nah, we won't be that demanding, lest we scare him away from the, erm, "most beautiful city in the world". What? Bath? Dave // Found communication in Paris much improved with a thick, \\ Inspector Clouseau accent...izzat yeur Minkey? Inspector Clouseau ? what's that ? Another french hero that tv-producer is hidding from us, here, in France ?
Re: Overriding print in cgi scripts
On Sat, Jul 29, 2000 at 03:26:02PM -0700, Chetan Patil wrote: Hello, We have a large code base printing header, body and footers to the STDOUT from the cgi scripts. Since all these are print statements, we have to go to extreme measures to make sure we donot print the content more than once. To clean things up (or at least start at it), we want to be able to trap the output of print to a local buffer and then selectively flush or junk based on the logic (for eg, if we decide to redirect at the end of the script, then we want to junk the buffer). I am looking for a quick solution which would allow me to override the CORE::print function and simply write to a buffer (a perl scalar). Once I am done with the processing, I can write out the buffer or junk it. Is it possible to do this? What should I be careful of? Perhaps Apache::Filter do the job ? -- Y a n n K e r h e r v é| [EMAIL PROTECTED] Developer EdenJob, Webmaster Esiea-Ouest | ICQ: 43893215 Perl Mongueur, Linux, Linux-Alpha, ... | TEL: 0146217695
Re: Templating system
On Thu, Jul 27, 2000 at 11:03:16AM -0700, Douglas Wilson wrote: -Original Message- From: Paul J. Lucas [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 27, 2000 10:11 AM To: [EMAIL PROTECTED] Subject: Re: Templating system On Thu, 27 Jul 2000, Jeffrey W. Baker wrote: On Thu, 27 Jul 2000, Paul J. Lucas wrote: http://www.best.com/~pjl/software/html_tree/ I've been researching templating systems for the past few days, I come in this morning, and here's 40 or so posts on the very subject. I've been wanting one where the template is as much like plain html as possible, and this seems to fit the bill. Until now I've been leaning toward the Template Toolkit, if only because the template elements can be filled in with other templates (maybe that's just in the beta version, I forget). We'd like to just have a standard Header/Footer, but have the Header Footer be based on what client we're hosting, and the only template kit I could see that had variable includes was HTML::DynamicTemplate. I'm going to have to make some decision soon, so we can start getting some work done :) Can anyone point me to some examples (to accelerate the learning curve) with this HTML::Tree?? Or any other pointers, opinions? As far I know (I'm a today-newcomer on the list - but I've done my best to read previous messages in archives), no one speaks really about HTML-Template (from Sam Tregar) . What I like (and what seems to interest you): - HTML-TAGs style : TMPL_TAG (thus you can preview the design in a browser) - Few and simple tags - loops (to handle tables) - includes (So, there's at least another one than DynamicTemplate :) - cache system (who works with mod_perl with IPC system) - (obviously, no embedded perl in html, so it's highly maintenable) Hope this helps -- Y a n n K e r h e r v é| [EMAIL PROTECTED] Developer EdenJob, Webmaster Esiea-Ouest | ICQ: 43893215 Perl Mongueur, Linux, Linux-Alpha, ... | TEL: 0146217695