Re: Hosting provider disallows mod_perl - memory hog / unstable

2004-08-30 Thread Jean-Michel Hiver
Gossamer-Threads has a pretty cool mod_perl setup. You can get a dedicated server or a shared account. Each shared account has its own apache process, which means that you can log in and control (i.e. stop / start / restart) your own modperl httpd. All the mod_perl processes are behind a

Re: mod_perl2, HEAD request and Content-Length

2004-08-02 Thread Jean-Michel Hiver
Geoffrey Young wrote: ??? I do not know what you mean, my GET request _has_ a content-lenght header! For HEAD, I just do not calculate the expencive data for my body. that is exactly what I mean - if you include a C-L header on a GET then you are supposed to have one for a HEAD request as well,

Re: HTTP headers - what is wrong

2004-07-30 Thread Jean-Michel Hiver
Chris Faust wrote: What would you suggest for a situation where a user is entering in their credit card information, using their back button and submitting again and then complaining about a double charge? I would suggest that you need to create some kind of transaction ticket. For example,

Re: HTTP headers - what is wrong

2004-07-27 Thread Jean-Michel Hiver
Chris Faust wrote: Folks, I need to expire a page so if a user uses his back button, he will not be able to the previous page (which as a form etc.).. Sorry if this sounds troll-ish, but IMHO if your application is designed in such a way that you need to sacrifice standard browser

Re: Keeping username and password alive after authentication and authorization

2004-07-13 Thread Jean-Michel Hiver
assuming you don't want to use basic or digest http authentication (aka popup boxes, which manage this kind of thing for you) typically the second (and future) script is kept unaware of the username/password. instead, the authentication script verifies the user/password and generates some kind

Re: Requests to the same process

2004-07-10 Thread Jean-Michel Hiver
Jo S [EMAIL PROTECTED] wrote: Well, my idea is to build a persistent IMAP module to use with mod_perl. So, unfortunetly this is not the solution. It seems that you need an IMAP proxy which keeps your connections persistent on which you can connect speedily. There are already programs that do

Re: Requests to the same process

2004-07-04 Thread Jean-Michel Hiver
The idea is to get always the same apache process to handle requests from the same client. I need this because I want to use something that is in memory, in a mod_perl variable. You need a session to uniquely identify clients. There are a horde of module on CPAN to help you do that.

Re: environment not getting reset

2004-05-17 Thread Jean-Michel Hiver
? Cheers, -- Jean-Michel Hiver - MKDoc Ltd http://mkdoc.com/ -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Re: installation problem

2004-05-09 Thread Jean-Michel Hiver
Problem: Can't load ' ../auto/DBI/DBI.so for module DBI. Well, you could try Net::MySQL instead which is pure perl. -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette:

Re: installation problem

2004-05-09 Thread Jean-Michel Hiver
I S wrote: Thanks. Yet, the web site and practical mod_perl book says that |Can't load DBI| or *similar error for the IO module or whatever dynamic module mod_perl tries to pull in first*. The solution is to re-configure, re-build and re-install Perl and dynamic modules with the following

Re: [BUG] Apache::Registry / 404 Not Found

2004-03-19 Thread Jean-Michel Hiver
Perrin Harkins wrote: On Mon, 2004-03-15 at 16:23, Jean-Michel Hiver wrote: Yes, what I'm trying to achieve is get Apache::Registry to send custom 404 pages - just like under mod_cgi. I assume that means you want to be able to run the exact same script under mod_cgi? And you don't want

Re: Apache::DBI startup failure

2004-03-16 Thread Jean-Michel Hiver
Ethan Joffe wrote: I am trying to use Apache::DBI with RH9.0 defaults (apache2.0.40-21.9, modperl1.99_05-5, DBI 1.32-5) I put the following line in my startup.pl: PerlModule Apache::DBI; PerlModule is for apache config files. startup.pl is just a regular perl script so you should use a plain

[BUG] Apache::Registry / 404 Not Found

2004-03-15 Thread Jean-Michel Hiver
Description: The following CGI script: print EOF; Status: 404 Not Found Content-Type: text/plain Document not found EOF Results in the following: Document not found !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN HTMLHEAD TITLE404 Not Found/TITLE /HEADBODY H1Not

Re: [BUG] Apache::Registry / 404 Not Found

2004-03-15 Thread Jean-Michel Hiver
Didn't Geoff already answer this question for you? You can't do this in this way with PerlSendHeader turned on. I'm not sure if your goal here is to send your own custom 404 error or to have apache pick it up and send the ErrorDocument without your content. If you explain what you're trying to

Re: [BUG] Apache::Registry / 404 Not Found

2004-03-15 Thread Jean-Michel Hiver
Perrin Harkins wrote: On Mon, 2004-03-15 at 16:23, Jean-Michel Hiver wrote: Yes, what I'm trying to achieve is get Apache::Registry to send custom 404 pages - just like under mod_cgi. I assume that means you want to be able to run the exact same script under mod_cgi? Well, yes

Re: [mp2] PerlInitHandler and PATH_INFO weirdness

2004-03-05 Thread Jean-Michel Hiver
Once you run the above at the very beginning of your script, it'll pull out $r out from thin air from that point on. that's exactly what +GlobalRequest does. True, but since it is not necessary to do this first operation with mp1, when you use Apache::compat with mp2 this should be done for

[mp2] PerlInitHandler and PATH_INFO weirdness

2004-03-04 Thread Jean-Michel Hiver
Hi List, I am trying to get a rather large-ish web app to run with apache 2 / mod_perl 1.99. I have installed the latest RPMs for Fedora from FreshRPMs. PerlModule Apache2 PerlModule Apache::compat PerlOptions +GlobalRequest PerlOptions +SetupEnv I have a very strange behavior with

Re: [mp2] PerlInitHandler and PATH_INFO weirdness

2004-03-04 Thread Jean-Michel Hiver
I would consider it a bug, but mod_perl (through the current release) populated %ENV when the first Perl*Handler runs, which may have been before or after translation (which is where path_info becomes known). if you specifically move that PerlInitHandler to a PerlHeaderParserHandler I'd suspect

Re: [OT-ish] Good name for generic wrapper around Apache::Session?

2004-02-23 Thread Jean-Michel Hiver
Dave Rolsky wrote: I'd like to create a wrapper around Apache::Session that would Well if you write 'a wrapper around Apache::Session', then I think you should call it Apache::Session::Wrapper since that's what you say it is... automatically create the session based on either a query/POST

Re: Experience of Apache::Session vs CGI::Session ?

2004-02-20 Thread Jean-Michel Hiver
. Authentication can be done using HTTP authentication without using cookies or URI session tracking (which is, frankly, very ugly). Cheers, -- Building a better web - http://www.mkdoc.com/ - Jean-Michel Hiver [EMAIL PROTECTED] - +44 (0)114 255 8097 Homepage

Re: [ANNOUNCE] Apache::Scoreboard 2:01

2003-12-23 Thread Jean-Michel Hiver
Nope. That's a very bad idea. I don't want to go and rewrite all my code to use Apache2::Request and dozens of other modules, which work exactly the same as before, but their guts are different. I would tend to agree with Jay though: I would consider Apache and Apache2 are two different

[ANNOUNCE] MKDoc::Apache_Cache

2003-12-23 Thread Jean-Michel Hiver
Speedup Apache::Registry scripts! Not so long ago I was enquiring the mod_perl list on how to capture Apache::RegistryNG's output by subclassing it. Thanks to the list help, here is this new module. MKDoc::Apache_Cache is a drop-in replacement for Apache::Registry. It uses Cache::FileCache as a

Re: mod_perl caching/delay

2003-12-10 Thread Jean-Michel Hiver
your global variables and localize them in your main cgi script: local $SomePackage::SomeVariable = undef; local %OtherPackage::SomeHash= (); etc. And see how it goes. Cheers, -- Building a better web - http://www.mkdoc.com/ - Jean-Michel

Re: Caching CGI scripts running under Apache::Registry

2003-11-28 Thread Jean-Michel Hiver
, -- Building a better web - http://www.mkdoc.com/ - Jean-Michel Hiver [EMAIL PROTECTED] - +44 (0)114 255 8097 Homepage: http://www.webmatrix.net/ -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html

Re: Caching CGI scripts running under Apache::Registry

2003-11-27 Thread Jean-Michel Hiver
to bother you guys with this stuff... I'm only -reluctantly- ever invoking the dark powers of the mod_perl gurus spirits when I'm super-stuck, which unfortunately is the case right now :( Cheers, -- Building a better web - http://www.mkdoc.com/ - Jean-Michel

Caching CGI scripts running under Apache::Registry

2003-11-26 Thread Jean-Michel Hiver
you take in order to write one? I've contemplated the idea but I'm stuck with capturing Apache::Registry or Apache::RegistryNG's output. Cheers, -- Building a better web - http://www.mkdoc.com/ - Jean-Michel Hiver [EMAIL PROTECTED] - +44 (0)114 255 8097

Re: Caching CGI scripts running under Apache::Registry

2003-11-26 Thread Jean-Michel Hiver
and writes it into '/tmp/foo'. (Attached file). However, I cannot get this same module to actually send correctly the captured output... Have you got any suggestions? Thanks a bunch, -- Building a better web - http://www.mkdoc.com/ - Jean-Michel Hiver