One and Two (followup)

2004-07-09 Thread David Arnold
All, Just a followup. I followed Stas's directions, and did this: % su % cd /usr/local/src % tar -zvxf apache_1.3.31.tar.gz % tar -zvxf mod_perl-1.29.tar.gz % cd mod_perl-1.29 % perl Makefile.PL APACHE_SRC=../apache_1.3.31/src \ DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 % make

Re: Apache-Test module skeletons

2004-07-09 Thread Stas Bekman
David Wheeler wrote: On Jul 9, 2004, at 2:23 PM, Stas Bekman wrote: I don't know how M::B does the version checking, but EU::MM does file parsing, searching for the $VERSION line, so the version number must be hardcoded there, unless you do something like: $VERSION = do { require Apache2; requir

Re: Apache-Test module skeletons

2004-07-09 Thread David Wheeler
On Jul 9, 2004, at 2:23 PM, Stas Bekman wrote: I don't know how M::B does the version checking, but EU::MM does file parsing, searching for the $VERSION line, so the version number must be hardcoded there, unless you do something like: $VERSION = do { require Apache2; require mod_perl.pm; $mod_

Re: Apache-Test module skeletons

2004-07-09 Thread Stas Bekman
Randy Kobes wrote: On Fri, 9 Jul 2004, Stas Bekman wrote: Randy Kobes wrote: [ ... ] What about requiring 'Apache' for mp1-related modules (since 'Apache' doesn't exist within mp2), and for mp2 modules, requiring 'Apache2' (which doesn't exist within mp1)? It won't work since the version number li

Re: One and Two again.

2004-07-09 Thread David Hodgkinson
On 9 Jul 2004, at 19:25, David Arnold wrote: My question to the people on this list: How to proceed? Can modperl1 and modperl2 coexist? Can they both run with the latest apache? Can someone outline the steps I should take to achieve my goal? Especially if there is someone on the list who has expe

Re: Apache-Test module skeletons

2004-07-09 Thread Randy Kobes
On Fri, 9 Jul 2004, Stas Bekman wrote: > Randy Kobes wrote: [ ... ] > > What about requiring 'Apache' for mp1-related modules > > (since 'Apache' doesn't exist within mp2), and for mp2 > > modules, requiring 'Apache2' (which doesn't exist within > > mp1)? > > It won't work since the version number

Re: Apache-Test module skeletons

2004-07-09 Thread Stas Bekman
David Wheeler wrote: On Jul 9, 2004, at 2:03 PM, Randy Kobes wrote: But won't the CPAN indices (which are used by both CPAN.pm and CPANPLUS.pm) still just recognize one version of mod_perl.pm? Either the current one associated with mp1, or, when mp2 is out of development, that associated with mp2 (

Re: Apache-Test module skeletons

2004-07-09 Thread David Wheeler
On Jul 9, 2004, at 2:03 PM, Randy Kobes wrote: But won't the CPAN indices (which are used by both CPAN.pm and CPANPLUS.pm) still just recognize one version of mod_perl.pm? Either the current one associated with mp1, or, when mp2 is out of development, that associated with mp2 (assuming mod_perl.pm

Re: Apache-Test module skeletons

2004-07-09 Thread Randy Kobes
On Fri, 9 Jul 2004, David Wheeler wrote: > On Jul 9, 2004, at 1:45 PM, David Wheeler wrote: > > > use 5.00503; > > use Apache::TestMB; > > > > Apache::TestMB->new( > > module_name=> 'Apache::Test::Skeleton', > > license=> 'perl', > > requires => { 'mod_perl' => ">=

Re: Apache-Test module skeletons

2004-07-09 Thread David Wheeler
On Jul 9, 2004, at 1:45 PM, David Wheeler wrote: use 5.00503; use Apache::TestMB; Apache::TestMB->new( module_name=> 'Apache::Test::Skeleton', license=> 'perl', requires => { 'mod_perl' => ">= 1.0, < 1.99", }, build_requires => { Test::More

Re: Apache-Test module skeletons

2004-07-09 Thread David Wheeler
On Jul 9, 2004, at 1:38 PM, Stas Bekman wrote: It won't work since the version number lives in the package mod_perl. and most likely you'd want to require a minimal version at some point. Ah, but this is one of the beauties of Module::Build, my friends. Behold! use 5.00503; use Apache::TestMB; A

Re: Apache-Test module skeletons

2004-07-09 Thread Stas Bekman
Randy Kobes wrote: On Fri, 9 Jul 2004, David Wheeler wrote: On Jul 9, 2004, at 1:09 PM, Stas Bekman wrote: There is no Apache.pm in mp2. You probably wanted to say: requires => { 'mod_perl' => 0, Right. In fact, it should probably be requires => { 'mod_perl' => '1.0', in t

Re: Apache-Test module skeletons

2004-07-09 Thread Randy Kobes
On Fri, 9 Jul 2004, David Wheeler wrote: > On Jul 9, 2004, at 1:09 PM, Stas Bekman wrote: > > > There is no Apache.pm in mp2. You probably wanted to say: > > > > > requires => { 'mod_perl' => 0, > > Right. In fact, it should probably be > > requires => { 'mod_perl' => '1.0

Re: Apache-Test module skeletons

2004-07-09 Thread Stas Bekman
David Wheeler wrote: On Jul 9, 2004, at 1:09 PM, Stas Bekman wrote: There is no Apache.pm in mp2. You probably wanted to say: > requires => { 'mod_perl' => 0, Right. In fact, it should probably be requires => { 'mod_perl' => '1.0', in the MP1 example, and requires

[mp2 tutorial] tomorrow, hosted by Vancouver.pm

2004-07-09 Thread Stas Bekman
I'll be teaching an up-to-date mod_perl 2.0 tutorial at the ActiveState offices in Vancouver, BC this upcoming Saturday. For more details see the Vancouver.pm homepage: http://vancouver.pm.org/. If you are in the area, stop by and learn what cool things you can do with mod_perl 2.0. --

Re: Apache-Test module skeletons

2004-07-09 Thread David Wheeler
On Jul 9, 2004, at 1:09 PM, Stas Bekman wrote: There is no Apache.pm in mp2. You probably wanted to say: > requires => { 'mod_perl' => 0, Right. In fact, it should probably be requires => { 'mod_perl' => '1.0', in the MP1 example, and requires => { 'mod_perl' =>

Re: Apache-Test module skeletons

2004-07-09 Thread Stas Bekman
David Wheeler wrote: [...] And in fact, to make it more generally useful, I think I'd actually make it: use 5.00503; use Apache::TestMB; Apache::TestMB->new( module_name=> 'Apache::Test::Skeleton', license=> 'perl', requires => { 'Apache' => 0,

Re: Apache-Test module skeletons

2004-07-09 Thread David Wheeler
On Jul 9, 2004, at 11:41 AM, Stas Bekman wrote: Isn't that Apache::TestMB? D'oh! Yes! Sorry! use 5.00503; use Apache::TestMB; Apache::TestMB->new( module_name => 'Apache::Test::Skeleton', )->create_build_script; And in fact, to make it more generally useful, I think I'd actually make it: use

ANNOUNCE: Krang BricLoader v1.11 Released

2004-07-09 Thread Sam Tregar
The first Krang add-on, Krang-BricLoader v1.11, is now available. With this add-on Krang can load data from Bricolage. If you've been looking for a way to go from Bricolage to Krang without losing data then your search is over! Download this, and someday many more, add-ons from the Krang add-on r

Re: missing param from post using apache::request

2004-07-09 Thread Joe Schaefer
Joe Schaefer <[EMAIL PROTECTED]> writes: [...] > Still digging though... Bug found in src/apreq_parsers.c:split_urlword. The problem is that apreq_decode can fail if a bucket ends in the middle of an escape sequence, which causes the parser to abort. This will be fixed before 2.04-dev is relea

Re: No Speed-Up?

2004-07-09 Thread Stas Bekman
Kent, Mr. John (Contractor) wrote: Greetings ModPerl Gurus, Not seeing any significant speed up in my cgi scripts using mod-perl (3.5 RPS) over straight Apache (3.2 RPS), unlike in the past. So figure I must have something configured incorrectly. Hopefully someone can tell me what I have wrong. S

Re: One and Two again.

2004-07-09 Thread Stas Bekman
David Arnold wrote: All, My apologies to Stas for again forgetting to "Reply All." Senior moments, I guess. :) Meanwhile, I have a successful installation of the latest apache and modperl2. I would like to install modperl1 for the purposes of practicing with the the excellent books by Stas, Geoffr

Re: Apache-Test module skeletons

2004-07-09 Thread Stas Bekman
David Wheeler wrote: On Jul 7, 2004, at 7:01 AM, Geoffrey Young wrote: the bug reporting skeleton has become so useful for me (and others) that I have created two new skeletons: I would add a Build.PL with these contents: use 5.00503; use Apache::Test::MB; Isn't that Apache::TestMB? Apache::Test:

Re: Cached vars

2004-07-09 Thread Stas Bekman
Geoffrey Young wrote: Ok. Working through the docs(converting to mp2-API) the following question came to my mind: Are there any rules, which (response-)method is in which module? - no_cache is found in Apache::RequestUtil - update_mtime/set_last_modified are found in Apache::Response - content_t

Re: Cached vars

2004-07-09 Thread Stas Bekman
Tom Schindl wrote: You set it explicitly, as in your example. Again, you need to use the special methods only for some of the headers. May be that section should explicitly list all those special headers. Patches are welcome. So far I've identified the following methods: Apache::ResquestUtil * n

One and Two again.

2004-07-09 Thread David Arnold
All, My apologies to Stas for again forgetting to "Reply All." Senior moments, I guess. Meanwhile, I have a successful installation of the latest apache and modperl2. I would like to install modperl1 for the purposes of practicing with the the excellent books by Stas, Geoffrey Young, and Lincoln

Re: Apache-Test module skeletons

2004-07-09 Thread David Wheeler
On Jul 7, 2004, at 7:01 AM, Geoffrey Young wrote: the bug reporting skeleton has become so useful for me (and others) that I have created two new skeletons: I would add a Build.PL with these contents: use 5.00503; use Apache::Test::MB; Apache::Test::MB->new( module_name => 'Apache::Test::Skele

Re: Requests to the same process

2004-07-09 Thread João Sá
Well, my idea is to build a persistent IMAP module to use with mod_perl. So, unfortunetly this is not the solution. Any more ideas? Joao Sa From: Perrin Harkins <[EMAIL PROTECTED]> To: Jean-Michel Hiver <[EMAIL PROTECTED]> CC: João Sá <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Subject: Re: Requests to

Re: missing param from post using apache::request

2004-07-09 Thread Joe Schaefer
"Ken Burcham" <[EMAIL PROTECTED]> writes: > Actually, one weird thing is that if I use CGI.pm instead of > Apache::Request the parm is there just fine... Maybe it handles > it differently or something... Sorry, I haven't been able to reproduce the bug (using Mozilla to submit the form) yet.

Re: Cookie Problems

2004-07-09 Thread ydnar
It might be easier (and simpler) to use a challenge cookie sent from the server and then checked by subsequent pages, where cookies are required, rather than depend on JavaScript. In the first script: my $c = new CGI::Cookie( -name => 'test_cookie' -value => "1", -path => "/" ); $r->err_headers

No Speed-Up?

2004-07-09 Thread Kent, Mr. John \(Contractor\)
Greetings ModPerl Gurus, Not seeing any significant speed up in my cgi scripts using mod-perl (3.5 RPS) over straight Apache (3.2 RPS), unlike in the past. So figure I must have something configured incorrectly. Hopefully someone can tell me what I have wrong. Successfully built: [Fri Jul 09

RE: missing param from post using apache::request

2004-07-09 Thread Ken Burcham
Actually, one weird thing is that if I use CGI.pm instead of Apache::Request the parm is there just fine... Maybe it handles it differently or something... FYI. ken. On 9 Jul 2004 at 12:14, Ken Burcham wrote: > Adding enctype=multipart works like a charm! The weird thing is that > smaller

RE: Apache::Request Multivalues

2004-07-09 Thread David Hofmann
Currently I'm using: use Apache::Request (); my $readquery = Apache->request; $readquery = Apache::Request->new($readquery); foreach $temppram (sort $readquery->param) { $in{$temppram} = join('\0', $readquery->param($temppram)); } But it seems I'm missing something that proably make this fa

RE: missing param from post using apache::request

2004-07-09 Thread Ken Burcham
Adding enctype=multipart works like a charm! The weird thing is that smaller textareas come in fine... it must just be when they get over a certain size that "something" is deciding to drop them... At any rate... thanks a lot! ken. On 9 Jul 2004 at 11:04, Barksdale, Ray wrote: > > Well, c

Re: Perl to DB2 works outside Apache, not in Apache

2004-07-09 Thread Waldo_Tumanut/MO/americancentury
Thanks to Randy Kobes and Frank Wiles for their responses. We got it to work. Turned out to be a Windows services security issue.  Config file was fine.  We changed the apache service it to run under a local services account rather than local system, granted file privileges and now I can get to D

RE: missing param from post using apache::request

2004-07-09 Thread Barksdale, Ray
Well, crap This just confirms my wife's observation: I'm a dufus. Rewrote my form generator during mp2 upgrade and dropped the enctype. All better now.   Sorry about piling on Joe. Thanks for the remider Stefan. From: Stefan Loones [mailto:[EMAIL PROTECTED] Sent: Friday, Jul

Cookie Problems

2004-07-09 Thread Mike Ward
Hi. I'm having some problems with users and cookies, although I'm not quite sure what's going on with it. On a front page, I have a bit of javascript that sets and immediately after reads a cookie, to check that cookies are enabled. This works fine for me in Firefox on both linux and windows, and

RE: missing param from post using apache::request

2004-07-09 Thread Barksdale, Ray
Same problem here passing large strings in fields (hidden in my case). POST_MAX set high (100 just to make sure). The only major difference between Ken's stuff and mine seems to be his threaded 5.8.0 Perl versus my single threaded 5.8.3. > -Original Message- > From: Ken Burcham [mail

Re: missing param from post using apache::request

2004-07-09 Thread Stefan Loones
In my experience you need to set   enctype="multipart/form-data"   in your form tag, whenever you use a textarea or a file upload. So must be: "http://gcxdev.ccci.org/aptest" enctype="multipart/form-data" method="post" /> Stef Ken Burcham wrote: I guess the simplest thing is to say the fo

RE: Apache::Request Multivalues

2004-07-09 Thread Kreimendahl, Chad J
Should return as an array if you ask for one or at least it does for me. my $apr = Apache::Request->new($r); my @array = $apr->param($key); -Original Message- From: David Hofmann [mailto:[EMAIL PROTECTED] Sent: Friday, July 09, 2004 9:49 AM To: [EMAIL PROTECTED] Subject: Apach

Re: missing param from post using apache::request

2004-07-09 Thread Ken Burcham
I guess the simplest thing is to say the form below, when posted to the handler below, drops the sys_bundle field. Thanks, ken. =-=-=-=-=-=-=- form: --- http://www.w3.org/TR/html4/loose.dtd";> Box tool test http://gcxdev.ccci.org/aptest"; method="post"/> sys_action sys_name sys_communit

Apache::Request Multivalues

2004-07-09 Thread David Hofmann
In CGI.pm you can use: %params = $q->Vars; To get the incoming form data and key words. Multivalued parameters are returned as a packed string, separated by the "\0" (null) character. How do you get multivalue data in Apache::Request? __

Re: missing param from post using apache::request

2004-07-09 Thread Joe Schaefer
"Ken Burcham" <[EMAIL PROTECTED]> writes: > Hey guys, > > I submitted a bug report to [EMAIL PROTECTED] and it got returned > without comment... (maybe it was the wrong place?) so I guess i'll > post it here since I know Joe Schaefer monitors this list :). Yup, I'm here. Problems with param

missing param from post using apache::request

2004-07-09 Thread Ken Burcham
Hey guys,   I submitted a bug report to [EMAIL PROTECTED] and it got returned without comment... (maybe it was the wrong place?)  so I guess i'll post it here since I know Joe Schaefer monitors this list :).  Any ideas what's going on here?  Thanks! ken. -8<-- Start B

Re: Cached vars

2004-07-09 Thread Geoffrey Young
> Ok. Working through the docs(converting to mp2-API) the following > question came to my mind: > > Are there any rules, which (response-)method is in which module? > - no_cache is found in Apache::RequestUtil > - update_mtime/set_last_modified are found in Apache::Response > - content_type

Re: Cached vars

2004-07-09 Thread Tom Schindl
Stas Bekman wrote: Tom Schindl wrote: Stas Bekman wrote: Tom Schindl wrote: [...] The very first URL, that you've quoted Tom, mentions that for certain headers you ought to use special Apache methods. Which is the case for content_type, no_cache and a few others. Apache does more things than jus

Re: Cached vars

2004-07-09 Thread Tom Schindl
Stas Bekman wrote: [...] You set it explicitly, as in your example. Again, you need to use the special methods only for some of the headers. May be that section should explicitly list all those special headers. Patches are welcome. I forgot that we have a whole chapter on that topic: http://per

Re: Cached vars

2004-07-09 Thread Stas Bekman
Tom Schindl wrote: Stas Bekman wrote: Tom Schindl wrote: [...] The very first URL, that you've quoted Tom, mentions that for certain headers you ought to use special Apache methods. Which is the case for content_type, no_cache and a few others. Apache does more things than just setting those hea

Re: Cached vars

2004-07-09 Thread Tom Schindl
Stas Bekman wrote: Tom Schindl wrote: [...] The very first URL, that you've quoted Tom, mentions that for certain headers you ought to use special Apache methods. Which is the case for content_type, no_cache and a few others. Apache does more things than just setting those headers. Your suggesti

Re: Cached vars

2004-07-09 Thread Tom Schindl
Hi, why are you not using the header functions provided by mod_perl, the problem you're having is described here: http://perl.apache.org/docs/2.0/user/coding/coding.html#Generating_HTTP_Response_Headers Things used here: http://perl.apache.org/docs/2.0/api/APR/Table.html#C_set_ http://perl.apache

Re: Cached vars

2004-07-09 Thread Stas Bekman
Tom Schindl wrote: Hi, why are you not using the header functions provided by mod_perl, the problem you're having is described here: http://perl.apache.org/docs/2.0/user/coding/coding.html#Generating_HTTP_Response_Headers Things used here: http://perl.apache.org/docs/2.0/api/APR/Table.html#C_set_

Re: Cached vars

2004-07-09 Thread Tom Schindl
Hi, why are you not using the header functions provided by mod_perl, the problem you're having is described here: http://perl.apache.org/docs/2.0/user/coding/coding.html#Generating_HTTP_Response_Headers Things used here: http://perl.apache.org/docs/2.0/api/APR/Table.html#C_set_ http://perl.apache.o

Re: [mp2] $r->read() return negative value.

2004-07-09 Thread Stas Bekman
wood chen wrote: I'm using CGI.pm 3.05 with mod_per 1.99 and Apache 2.0.40 on a Red Hat Linux 9 box. When uploading a large file to my perl script, If I abort file transfer by close the browser, the httpd child process who process this request will run out of memory. Whe i trace into the CGI.pm,