Re: no_cache pragma/cache-control headers : confusion

2001-04-05 Thread Andrew Ho
Hello, KOFrom the code in Apache.xs, it seems like setting $r-no_cache(0) will KOunset the flag, but not remove the headers. Well, the Expires header is also removed. But it's still broken; you can verify this buggy behavior with this simple script: use Apache (); my $r =

Re: Getting AuthCookie to return a wml page

2001-04-05 Thread tim fulcher
Delivering text/html to a wap browser will definitely make it choke a bit :-) If you are using the same access mechanism for both web wap access then you have to sniff the client details to work out what to send back. Now you *could* look at the USER_AGENT string of the request and work off of

Re: PerlAccessHandler causes '500 Server Error' on 'return OK'

2001-04-05 Thread Jochen Schnapka
Hi. Sometimes, one has to answer one's own questions On Fri, Mar 30, 2001 at 03:00:08PM +0200, Jochen Schnapka wrote: Hi. I'm trying some of the well-known Apache-Perl-Modules, such as DayLimit.pm. Strangely, the server throws an internal error (500), when the Perl module returns 'OK'.

Re: access log and the request object

2001-04-05 Thread test
I once used this: Is PerlCleanupHandler the same as LogHandler? As far as I remember putting the code in the cleanup phase would mean logging after finishing the request cycle with no delay for the client. Is that true? Location /bankers SetHandler perl-script PerlHandler

Build problems on Mandrake

2001-04-05 Thread Dave Hodgkinson
I'm trying to build mod_perl on my Mandrake 7.2 laptop, apache 1.3.19, mod_perl 1.25 and perl 5.6.0 and I'm getting: cc -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_HSREGEX -DNO_DL_NEEDED -fno-strict-aliasing -D_LARGEFILE_SOURCE

Re: Problem with Apache::DBI

2001-04-05 Thread BeerBong
I have exactly the same errors in my log. AutoCommit not specified in connect method, therefore 'on' by default. Now, specify AutoCommit explicitly and wait for errors. - Sergey Polyakov aka "BeerBong" Chief of WebZavod

[JOB] Web/Database Programmer/Analyst (US-NY-Ithaca)

2001-04-05 Thread Ray Zimmerman
The Applied Economics Management department at Cornell University invites applications for a Web/Database Programmer/Analyst for the Laboratory for Experimental Economics and Decision Research. To work in close partnership with team leadership to design implement a flexible web-based

returning HTTP error code

2001-04-05 Thread Helios de Creisquer
Hi ! I've got a mod_perl script calling an external program which use much memory. And I would like to send a 503 instead of calling this external program when there is less than xxxMB of memory free. Is mod_perl provides this ability to decide to send an HTTP return code or another ? Thx for

Re: returning HTTP error code

2001-04-05 Thread Jeffrey W. Baker
On Thu, 5 Apr 2001, Helios de Creisquer wrote: Hi ! I've got a mod_perl script calling an external program which use much memory. And I would like to send a 503 instead of calling this external program when there is less than xxxMB of memory free. Is mod_perl provides this ability to

Re: returning HTTP error code

2001-04-05 Thread Helios de Creisquer
"Jeffrey W. Baker" wrote: sub handler { my $r = shift; $r-status(503); $r-send_http_header; return OK; #or return SERVER_ERROR; depends on how want to do it. } Wow, pretty simple, in fact, thx a lot ! :-) Cheers. -- Helios de Creisquer mail: [EMAIL

Re: Problem with Apache::DBI

2001-04-05 Thread Tim Bunce
You would only get that message if AutoCommit was off. It should not be off for DBD::mysql (since it doesn't yet support the transaction features of newer versions). Plus, disconnect doesn't do anything when using Apache::DBI (by design). Tim. On Wed, Apr 04, 2001 at 11:49:17PM -0400, Alec

system(), exec()?

2001-04-05 Thread Mike Austin
Hi, I'm new to mod_perl, but I haven't been able to find an answer to this question. I'm used to mod_php4, and we use "safe_mode" to allow our developers to write applications, but restrict their access to files they don't own, and to stop them from using system() or exec() type calls. Is

Re: system(), exec()?

2001-04-05 Thread Robin Berjon
At 18:52 05/04/2001 -0700, Stas Bekman wrote: On Thu, 5 Apr 2001, Mike Austin wrote: I'm used to mod_php4, and we use "safe_mode" to allow our developers to write applications, but restrict their access to files they don't own, and to stop them from using system() or exec() type calls. Is

Re: system(), exec()?

2001-04-05 Thread Mike Austin
On Thu, 5 Apr 2001, Stas Bekman wrote: % perldoc ops % perldoc Opcode But this appears to be a global change, correct? Can I restict access to these commands for most directories, but still enable them for a few, trusted directories? " Since the ops pragma currently has an irreversible

Optimizing memory use of modperl servlets

2001-04-05 Thread Bryce Pasechnik
I've done extensive reading in both the guide and the maillist archives and haven't found a very comprehensive explanation of this topic. First I'll explain the setup of the scripts and webserver that we're using: I have 1 accessor script that the public would connect to "test.pl". Inside that

Re: system(), exec()?

2001-04-05 Thread Stas Bekman
On Thu, 5 Apr 2001, Mike Austin wrote: On Thu, 5 Apr 2001, Stas Bekman wrote: % perldoc ops % perldoc Opcode But this appears to be a global change, correct? Can I restict access to these commands for most directories, but still enable them for a few, trusted directories? "

Re: Optimizing memory use of modperl servlets

2001-04-05 Thread Stas Bekman
[ an extensive description of sharing memory question snipped ] Please read (or reread) these sections of the guide: http://perl.apache.org/guide/performance.html#Sharing_Memory http://perl.apache.org/guide/performance.html#Improving_Performance_by_Prevent

mod_perl BOF

2001-04-05 Thread Geoffrey Young
hi all... over a few beers last night, we (anyone who was drinking:) decided that tonight would be a better time for the BOF than 9am this morning (or any morning for that matter) seeing as how we don't have a room though, I thought that the pool was as good a place to meet as anywhere...

Re: Apache::ASP -- Corruption of statedir files/truncation of methodnames

2001-04-05 Thread Carl Lipo
The statedir is local so it doesnt seem to be an NFS issue. There definitely seems to be a corruption of the StateDir files: here is a error that crops up in our error log. [Thu Apr 5 08:09:07 2001] [notice] child pid 11555 exit signal Segmentation fault (11) Use of uninitialized value at

Re: Problem with Apache::DBI

2001-04-05 Thread Alec Smith
In my module I've got: use DBI; use Apache::DBI; $db = DBI-connect('DBI:mysql:dbname', 'username', 'password', {RaiseError = 1, AutoCommit = 1}); and in startup.pl: use DBI; use Apache::DBI; Apache::DBI-connect_on_init('DBI:mysql:dbname', 'username', 'password',{RaiseError = 1, AutoCommit =

Apache::Compress and Apache::Filter

2001-04-05 Thread JR Mayberry
Does anyone know anything about the above combo, and getting an error message: Bad filehandle at Filter.pm line 123 when using a client that doesnt support gzip..(specifically 'ab', apache bench) I may be something wrong but its only breaking when a client doesnt support gzip thanks

Re: Apache::DBI-forcibly_disconnect?

2001-04-05 Thread Tim Bunce
On Thu, Apr 05, 2001 at 05:00:40PM -0400, Daniel wrote: Has anybody attempted to modify Apache::DBI to force a handle to disconnect? eg. $dbh-forcibly_disconnect; Fetch the latest - read the docs - if not found - implement yourself - send a patch - help save the world. Tim.

Hangs / Out of memory

2001-04-05 Thread Gregor Mosheh, Programmer
VERSIONS The problem exists with various combinations. The ones I'm currently testing are: Apache 1.3.12+mod_perl 1.17+perl 5.5.3 Apache 1.3.14+mod_perl 1.3.24+Perl 5.6.0 PROBLEM / SYMPTOMS The combination of Apache 1.3.12 + mod_perl 1.27 + perl 5.5.3 is working beautifully on our existing

Apache::Request problem (possible bug)

2001-04-05 Thread Cees Hek
Either I've found a problem with Apache::Request, or I don't know what I'm doing :) Setting variables with $r-param() doesn't seem to work for array references. ie the following line from the man page doesn't work correctly $r-param('foo' = [qw(one two three)]); When you look at foo

Re: Apache::Compress and Apache::Filter

2001-04-05 Thread Ken Williams
Hi JR, I've been avoiding this bug to my peril. Does the following patch fix it? = --- Filter.pm 2000/12/20 03:43:44 1.16 +++ Filter.pm 2001/04/06 05:05:24 @@ -120,8 +120,8 @@ sub send_fd { my $self = shift; - if