APR/Perl related security automation software released.

2022-09-16 Thread joe
Hot off the presses: https://github.com/SunStarSys/orthrus/releases/tag/v1.0.0 https://github.com/SunStarSys/pty/releases/tag/v2.1.1 For hints on how to combine these products into your shell’s rc files, see https://github.com/joesuf4/home/blob/wsl/.zshrc and https://github.com/

How to create an APR::SockAddr object

2020-12-31 Thread Jacques Deguest
Hello, I know that we can get an APR::SockAddr object from $c->remote_addr for example, and in turn, it can be conveniently used in conjonction with APR::IpSubnet to check if that ip is part of a subnet. What I would like to do is create an APR::SockAddr object directly, but I could not find

Re: Apache 2.4, mod_perl 2.0.9, APR::SockAddr->port() missing ?

2016-10-31 Thread Jie Gao
ent_port = $r->useragent_addr->port(); . Regards, Jie * A. Warnier wrote: > Date: Sun, 30 Oct 2016 12:12:57 +0100 > From: "A. Warnier" > To: modperl@perl.apache.org > Subject: Re: Apache 2.4, mod_perl 2.0.9, APR::SockAddr->port() missing ? > User-Agent: Mozil

Re: Apache 2.4, mod_perl 2.0.9, APR::SockAddr->port() missing ?

2016-10-31 Thread Jie Gao
d_perl list > Subject: Apache 2.4, mod_perl 2.0.9, APR::SockAddr->port() missing ? > User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:38.0) Gecko/20100101 > Thunderbird/38.5.0 > > Hi. > > Apologies to Steve and Torsten for posting this previously to them directly. > It som

Re: Apache 2.4, mod_perl 2.0.9, APR::SockAddr->port() missing ?

2016-10-30 Thread Randolf Richardson
dr; > > 1184:my $client_addr = $r->connection->remote_addr; > > $remote_port = $client_addr->port; > > $remote_ip = $r->connection->client_ip; > > > > Can't locate object method "remote_addr" via package "Apach

Re: Apache 2.4, mod_perl 2.0.9, APR::SockAddr->port() missing ?

2016-10-30 Thread A. Warnier
a better place. Anyway thus : I am in the process of converting some mod_perl AAA code from Apache 2.2 to 2.4, and I encounter the following problem : Apache error log : Can't locate object method "port" via package "APR::SockAddr" at /home/mira/EFS/lib/AUTH

Re: Apache 2.4, mod_perl 2.0.9, APR::SockAddr->port() missing ?

2016-10-30 Thread A. Warnier
Anyway thus : I am in the process of converting some mod_perl AAA code from Apache 2.2 to 2.4, and I encounter the following problem : Apache error log : Can't locate object method "port" via package "APR::SockAddr" at /home/mira/EFS/lib/AUTH/SLC.pm line 1184.\ wh

Re: Apache 2.4, mod_perl 2.0.9, APR::SockAddr->port() missing ?

2016-10-29 Thread Randolf Richardson
would have been a better place. > Anyway thus : > > I am in the process of converting some mod_perl AAA code from Apache 2.2 to > 2.4, and I > encounter the following problem : > > Apache error log : > > Can't locate object method "port" via package &

Apache 2.4, mod_perl 2.0.9, APR::SockAddr->port() missing ?

2016-10-29 Thread A. Warnier
error log : Can't locate object method "port" via package "APR::SockAddr" at /home/mira/EFS/lib/AUTH/SLC.pm line 1184.\ which corresponds to : 1183: my $client_addr = $r->connection->client_addr; 1184: $remote_port = $client_addr->port; I

FYI: ModPerl and APR with Apache HTTPd v2.4 on "pkgin" in the NetBSD 7 environment

2015-12-23 Thread Randolf Richardson
For anyone who wants to use ModPerl and APR with Apache HTTPd v2.4 on NetBSD 7 (installed via "pkgin"), this Problem Report that I submitted to the NetBSD web site will probably be of interest to you: http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?nu

Re: Usage: APR::URI::parse(classname, p_sv, uri)

2012-11-20 Thread Samuel Gómez
Thank you for pointing out all that relevant aspects. I'll go on with the second method. Regards. On Mon, Nov 19, 2012 at 11:22 PM, André Warnier wrote: > Samuel Gómez wrote: > >> Hi, >> >> In a mod_perl handler I am writing I wrote >> my $parsed_uri = APR

Re: Usage: APR::URI::parse(classname, p_sv, uri)

2012-11-19 Thread André Warnier
Samuel Gómez wrote: Hi, In a mod_perl handler I am writing I wrote my $parsed_uri = APR::URI->parse($r->pool, $uri); as stated by http://perl.apache.org/docs/2.0/api/APR/URI.html#C_parse_ but on execution it gave me this error: "Usage: APR::URI::parse(classname, p_sv, uri)"

Usage: APR::URI::parse(classname, p_sv, uri)

2012-11-19 Thread Samuel Gómez
Hi, In a mod_perl handler I am writing I wrote my $parsed_uri = APR::URI->parse($r->pool, $uri); as stated by http://perl.apache.org/docs/2.0/api/APR/URI.html#C_parse_ but on execution it gave me this error: "Usage: APR::URI::parse(classname, p_sv, uri)" So I have three questi

Re: APR does not understand this error code

2011-05-25 Thread Thomas den Braber
ctually restarted. I found that there where two occasions of the APR error. One that gives the real line number where the problem occurred: 'APR does not understand this error code at /path/module line xxx' This does not course the Apache to restart. The other error is: 'Apache2

RE: APR does not understand this error code

2011-05-18 Thread Steve Hay
Torsten Förtsch wrote on 2011-05-17: > On Tuesday, May 10, 2011 21:15:29 Thomas den Braber wrote: >> In http://www.gossamer-threads.com/lists/modperl/dev/102357 it >> looks like it is solved. > > Thomas, could you please check if the patch at > > http://www.gossamer-threads.com/lists/modperl/de

Re: APR does not understand this error code

2011-05-17 Thread Torsten Förtsch
On Tuesday, May 10, 2011 21:15:29 Thomas den Braber wrote: > In http://www.gossamer-threads.com/lists/modperl/dev/102357 it > looks like it is solved. Thomas, could you please check if the patch at http://www.gossamer-threads.com/lists/modperl/dev/102983#102983 fixes your problem? It sounds qu

Re: APR does not understand this error code

2011-05-11 Thread Torsten Förtsch
On Wednesday, May 11, 2011 17:15:19 Thomas den Braber wrote: > I think it is better to fix this in Mod Perl than making workaround. Patches are welcome, really. Currently, we are quite short of Windows programmers. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch

RE: APR does not understand this error code

2011-05-11 Thread Thomas den Braber
> We were getting this behavior in our web application. It appears that > we've fixed it (we're still testing it) by checking the return value > from each print statement (usually we call the Apache request object's > print method) and aborting (by calling die() in our application - we > have an

RE: APR does not understand this error code

2011-05-10 Thread Deighan, John
we have an all-encompasing try block) if print returns a false value. I would give that a try. From: Thomas den Braber [tho...@delos.nl] Sent: Tuesday, May 10, 2011 3:15 PM To: modperl List Subject: APR does not understand this error code Hi, I am still havi

APR does not understand this error code

2011-05-10 Thread Thomas den Braber
Hi, I am still having these errors for my modperl installation on windows. I use the lates Modperl 2.05 and hava tested with Perl 5.10.1 and 5.12 (activestate) but both give the same results. Also tested on Windows 2003 and 2008 server. The full error is: Apache2 IO flush: (620018) APR does

Re: APR::Table sporadic error

2011-05-06 Thread Jason Aubrey
y > > >> my $warnings = eval {$r->notes->get("warnings")}; >> if( $@ ) { >>warn "APR::Table is '$INC{q{APR/Table.pm}}'"; >>die $@; >> } >> >> you will see that it is not loaded. >> >> &

Re: APR::Table sporadic error

2011-05-06 Thread Jason Aubrey
> > my $warnings = eval {$r->notes->get("warnings")}; > if( $@ ) { >warn "APR::Table is '$INC{q{APR/Table.pm}}'"; >die $@; > } > > you will see that it is not loaded. > > Thanks Torsten - we'll try this out. If you

Re: APR::Table sporadic error

2011-05-06 Thread Torsten Förtsch
On Friday, May 06, 2011 17:24:18 Jason Aubrey wrote: > Any hints/tips/ideas would be very much appreciated. Are you really sure (I mean really really) that APR::Table is loaded? I see you load Apache2::Log but nothing about APR::Table. I think if you replace line 74 my $warnings = $r->

APR::Table sporadic error

2011-05-06 Thread Jason Aubrey
Hi All, We have a modperl application that is an online homework system for math courses called webwork. My installation and a few others have seen a sporadic error from APR::Table that nobody quite knows how to diagnose. Here are two typical examples: Example 1: Can't locate object m

Can't locate object method "STORE" via package "APR::Request::Param::Table"

2011-02-25 Thread James B. Muir
should be easy to handle requests sent with the GET method. However, I've also got to be able to handle the POST method. Based on my testing of the POST method I see the following error message in the apache2 error log: Can't locate object method "STORE" via package &q

Re: Path to my module and APR::Socket::send() usage

2010-10-21 Thread André Warnier
Alexander Farber wrote: Even though my logs show that 1 send-call usually suffices (I have a site with 1 visitor/3 min), I've updated my script. Not sure if returning DECLINED is a good idea. And if you know a way to log into access_log instead of error_log, please tell me. No. I have been lo

Re: Path to my module and APR::Socket::send() usage

2010-10-21 Thread Alexander Farber
use strict; use warnings FATAL => 'all'; use Apache2::Connection(); use APR::Socket(); use Apache2::ServerRec(); use Apache2::Const(-compile => 'OK'); use APR::Const(-compile => 'SO_NONBLOCK'); use constant POLICY => qq{ http://www.adobe.com/xml/dtds/c

Re: Path to my module and APR::Socket::send() usage

2010-10-21 Thread Alexander Farber
Or maybe I've looked wrong and you do need to loop in Perl? On Thu, Oct 21, 2010 at 5:20 PM, Alexander Farber wrote: > 2) I've looked at > http://svn.apache.org/viewvc/apr/apr/trunk/network_io/unix/sendrecv.c?view=markup >  If APR::Socket::send() is autogenerated from apr_so

Re: Path to my module and APR::Socket::send() usage

2010-10-21 Thread Alexander Farber
', bytes: ', $nbytes); - I had to take warn() because don't want to increase LogLevel. But actually I would prefer printing to access_log and not error_log. Is there a way for that? 2) I've looked at http://svn.apache.org/viewvc/apr/apr/trunk/network_io/unix/sendrecv.c

Re: Path to my module and APR::Socket::send() usage

2010-10-21 Thread Ryan Gies
ing lines to the httpd.conf # Listen 843 # # PerlModule SocketPolicy # PerlProcessConnectionHandler SocketPolicy # use strict; use warnings FATAL => 'all'; use Apache2::Connection(); use APR::Socket(); use Apache2::Const(-compile => 'OK'); use APR::

Re: Path to my module and APR::Socket::send() usage

2010-10-21 Thread Torsten Förtsch
On Thursday, October 21, 2010 15:21:37 Alexander Farber wrote: > [error] Can't locate object method "log" via package > "Apache2::ServerRec" at /etc/httpd/SocketPolicy.pm line 39.\n you probably miss a "use Apache2::ServerRec ()" and perhaps a "use Apache2::Log ()" in your code. Further to your

Re: Path to my module and APR::Socket::send() usage

2010-10-21 Thread Alexander Farber
blocking mode $sock->opt_set(APR::Const::SO_NONBLOCK => 0); $sock->send(POLICY); my $slog = $c->base_server()->log(); $slog->info('served socket policy to: ', $c->remote_ip()); Apache2::Const::OK; } Regards Alex On Thu, Oct 21

Path to my module and APR::Socket::send() usage

2010-10-21 Thread Alexander Farber
y # PerlProcessConnectionHandler SocketPolicy # use strict; use warnings FATAL => 'all'; use Apache2::Connection(); use APR::Socket(); use Apache2::Const(-compile => 'OK'); use APR::Const(-compile => 'SO_NONBLOCK'); use constant POLICY => qq{ h

Re: APR::ArrayHeader

2010-09-01 Thread Torsten Förtsch
On Tuesday, August 31, 2010 22:28:21 Anton Petrusevich wrote: > I was unable to find the answer how to use such an object. > ServerRec::names returns object like this: > > $VAR1 = bless( do{\\(my $o = 19244608)}, 'APR::ArrayHeader' ); > > > I know it maps to ap

APR::ArrayHeader

2010-08-31 Thread Anton Petrusevich
Hi, I was unable to find the answer how to use such an object. ServerRec::names returns object like this: $VAR1 = bless( do{\\(my $o = 19244608)}, 'APR::ArrayHeader' ); I know it maps to apr_array_header_t structure, but is it anyhow useful? I wanted dynamically change ServerAl

Need an explanation of APR::Pool and it's use in mod_perl

2010-01-17 Thread Boysenberry Payne
Hello everyone, I've been looking over the APR::Pool because some pools gets passed to some of my handlers and I was wondering how I could use it to good effect managing my memory better. There are great instructions on the API for it, but no real explanation as to how to use the poo

Re: APR::Request gets Symbol Not Found

2009-11-21 Thread Bill Karwin
2.2.14 (Unix) DAV/2 PHP/5.3.0 mod_fastcgi/2.4.6 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.8.9 Server at local.karwin.com Port 80 Regards, Bill Karwin -- View this message in context: http://old.nabble.com/APR%3A%3ARequest-gets-Symbol-Not-Found-tp26419579p26459979.html Sent from the mod_pe

Re: APR::Request gets Symbol Not Found

2009-11-21 Thread Joe Schaefer
Did you remember to load mod_apreq2 into httpd? Typically requires a LoadModule apreq_module modules/mod_apreq2.so - Original Message > From: Bill Karwin > To: modperl@perl.apache.org > Sent: Sat, November 21, 2009 1:27:31 PM > Subject: Re: APR::Request gets Symb

Re: APR::Request gets Symbol Not Found

2009-11-21 Thread Bill Karwin
milar error as I got from the command line. I added this in httpd-vhosts.conf: PerlModule APR::Request I tried restarting Apache and this appeared in my Apache error_log: [Fri Nov 20 23:22:36 2009] [error] Can't load '/opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/auto/APR

Re: APR::Request gets Symbol Not Found

2009-11-18 Thread Perrin Harkins
On Wed, Nov 18, 2009 at 9:55 PM, Bill Karwin wrote: > However when I try to test that I can load the module: > > $ perl -MAPR::Request -e true > Can't load > '/opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/auto/APR/Request/Request.bundle' > for module APR:

APR::Request gets Symbol Not Found

2009-11-18 Thread Bill Karwin
load the module: $ perl -MAPR::Request -e true Can't load '/opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/auto/APR/Request/Request.bundle' for module APR::Request: dlopen(/opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/auto/APR/Request/Request.bundle, 1

Re: PerlIO :APR / apr_file_open() flag issue

2009-04-25 Thread Jeff Trawick
>The only issue I could see is if APR_WRITE was addeed >at some point somewhat recently, and this change would break >against older APRs. APR_READ and/or APR_WRITE has been required since the first APR release. Here's the logic to check for APR_READ/APR_WRITE back in 1999 (still c

Re: PerlIO :APR / apr_file_open() flag issue

2009-04-22 Thread Marc Adkins
So are there no work-arounds for this? I notice that there seems to be only the PerlIO interface to the APR file I/O functionality. If there was a more direct Perl API (wherein I could pass the flags I want) this wouldn't be an issue. Philippe M. Chiasson wrote: On 20/04/09 19:59 ,

Re: PerlIO :APR / apr_file_open() flag issue

2009-04-20 Thread Philippe M. Chiasson
On 20/04/09 19:59 , Marc Adkins wrote: > Originally posted to the APR dev list. The response (from jTrawick) was > as follows: > > The Perl code that builds the apr_file_open() flags needs to turn on > APR_WRITE. > > I think that this patch to mod_

PerlIO :APR / apr_file_open() flag issue

2009-04-20 Thread Marc Adkins
Originally posted to the APR dev list. The response (from jTrawick) was as follows: The Perl code that builds the apr_file_open() flags needs to turn on APR_WRITE. I think that this patch to mod_perl is what you need: --- modperl_apr_perlio.c.orig2007-12-31 02:39:50.0

Re: APR, libapreq2, mod_perl2, APR::*, Apache2::*

2009-01-08 Thread Adam Prime
Mark Hedges wrote: So where does that leave the perl binding between 2.4 and 3.0? Or will we all be running mod_parrot/mod_perl6 by then (which looks like it's made great progress since YAPC) Great, all code where '.' was the concatenator operator breaks, hurray. (?) You don't have to switch

Re: APR, libapreq2, mod_perl2, APR::*, Apache2::*

2009-01-08 Thread Mark Hedges
too afraid of change to allow building libapreq2... like on CentOS, where the perl bindings to APR don't appear to be available and have to be built, which requires the dev packages... and the dev packages require a server upgrade which isn't allowed because (fear of the unknown) it might ca

Re: APR, libapreq2, mod_perl2, APR::*, Apache2::*

2009-01-08 Thread Philip M. Gollucci
we all be running mod_parrot/mod_perl6 by then (which looks like it's made great progress since YAPC) Adam Its quite complex and I'm not sure API/ABI and all that and combinations of module A. Given apr, apr-util, httpd (2.0.x,2.2.x, mpms) perl (5.6.x, 5.8.x, 5.10.x) mod_perl

Re: APR, libapreq2, mod_perl2, APR::*, Apache2::*

2009-01-08 Thread Adam Prime
Philip M. Gollucci wrote: Oh, but we started work for this in 2.4 of httpd for libapreq.so and mod_apreq.so for http core. cool after httpd 2.6/3.0 we might be able to swing the perl bindings peices. So where does that leave the perl binding between 2.4 and 3.0? Or will we all be running

Re: APR, libapreq2, mod_perl2, APR::*, Apache2::*

2009-01-08 Thread Michael Ludwig
Adam Prime schrieb: Michael Ludwig wrote: It is said in the thread referred to above that "the splitting of the APIs [...] is strange and confusing", and coming from mod_perl 1.0, I agree. But it probably has advantages as well. i think that comment about splitting the api was with respect to

Re: APR, libapreq2, mod_perl2, APR::*, Apache2::*

2009-01-08 Thread Philip M. Gollucci
Adam Prime wrote: Personally, i think libapreq should be part of core httpd (or at least a 'normal' module, and libapreq2's perl bindings should be part of stock mod_perl. Oh, but we started work for this in 2.4 of httpd for libapreq.so and mod_apreq.so for http core. after httpd 2.6/3.0 we m

Re: APR, libapreq2, mod_perl2, APR::*, Apache2::*

2009-01-08 Thread Adam Prime
Michael Ludwig wrote: It is said in the thread referred to above that "the splitting of the APIs [...] is strange and confusing", and coming from mod_perl 1.0, I agree. But it probably has advantages as well. i think that comment about splitting the api was with respect to RequestRec, Request

Re: APR, libapreq2, mod_perl2, APR::*, Apache2::*

2009-01-08 Thread Michael Ludwig
Foo JH schrieb: Michael Ludwig wrote: I'd like to reach an understanding of what these ranges of modules and interfaces are intended for. When would I want to use which interface? Or is it all a matter of style and taste? Possibly. You will need the standard modperl2 library to even get modper

Re: APR, libapreq2, mod_perl2, APR::*, Apache2::*

2009-01-08 Thread Foo JH
Michael Ludwig wrote: > I'd like to reach an understanding of what these ranges of modules and > interfaces are intended for. When would I want to use which interface? > Or is it all a matter of style and taste? Possibly. You will need the standard modperl2 library to even get modperl up and runn

APR, libapreq2, mod_perl2, APR::*, Apache2::*

2009-01-08 Thread Michael Ludwig
Trying to locate APR::Request::Apache2 on my system, I noticed it is part of libapreq2. libapreq 2-2.07 | ModPerl | ModPerl http://www.gossamer-threads.com/lists/modperl/modperl/87199 | libapreq2 is an APR-based shared library used for parsing HTTP | cookies, query-strings and POST data. Doing

Multiple problems in mod_perl tests for apr-ext e.g t/apr-ext/brigade

2008-12-03 Thread Alex Goldney
Hi all, I have successfully compiled mod_perl on an AIX box using the AIX compiler. However, it fails a number of tests t/apr-ext/brigade.t 255 65280?? ?? % ?? t/apr-ext/bucket.t 255 65280?? ?? % ?? t/apr-ext/error.t255 65280?? ?? % ?? t/apr

Re: Bug: APR::Finfo->protection is not (stat $filename)[2]

2008-10-29 Thread Philip M. Gollucci
Philip M. Gollucci wrote: Joachim Zobel wrote: Hi. If stat returns 777 (octal), protection returns 0x777 (hexadecimal). The documentaion claiming this as the same value should be fixed. If you can submit a patch or point to this documentation, I'll be glad to update that for you. http://sv

Re: Bug: APR::Finfo->protection is not (stat $filename)[2]

2008-10-29 Thread Adam Prime
I'm guessing this is the page he was referring to. http://perl.apache.org/docs/2.0/api/APR/Finfo.html#C_protection_ Adam

Re: Bug: APR::Finfo->protection is not (stat $filename)[2]

2008-10-27 Thread Philip M. Gollucci
Joachim Zobel wrote: Hi. If stat returns 777 (octal), protection returns 0x777 (hexadecimal). The documentaion claiming this as the same value should be fixed. If you can submit a patch or point to this documentation, I'll be glad to update that for you. -- --

Bug: APR::Finfo->protection is not (stat $filename)[2]

2008-10-25 Thread Joachim Zobel
Hi. If stat returns 777 (octal), protection returns 0x777 (hexadecimal). The documentaion claiming this as the same value should be fixed. Sincerely, Joachim

RE: Cookie help - using both cgi.pm and APR::Request::Cookie

2008-05-28 Thread cfaust-dougot
AIL PROTECTED] Sent: Wed 5/28/2008 6:27 AM To: cfaust-dougot Cc: modperl@perl.apache.org Subject: Re: Cookie help - using both cgi.pm and APR::Request::Cookie I don't guarantee that this is the real issue you're having, but be careful of the following : either of the Apache2::Request

Re: Cookie help - using both cgi.pm and APR::Request::Cookie

2008-05-28 Thread André Warnier
by that. One of the modules above offers a "raw_cookie" method to get around this, but again I don't remember which one. cfaust-dougot wrote: Folks, I taking over some really old code and I'm in the process of converting it over to mp2. I want to be able to use APR::Request:

Cookie help - using both cgi.pm and APR::Request::Cookie

2008-05-27 Thread cfaust-dougot
Folks, I taking over some really old code and I'm in the process of converting it over to mp2. I want to be able to use APR::Request::Cookie to create the cookie for the new things I'm doing but I need to create it exactly like CGI.pm is currently doing so the old code will contin

Re: APR::Socket SSL

2008-04-03 Thread Philippe M. Chiasson
Mike Cardwell wrote: Hi, I'm writing a PerlProcessConnectionHandler. It starts: sub handler { my $c = shift; my $sock = $c->client_socket; $sock is an instance of APR::Socket. The problem is that the connection is using SSL and I need to be able to read/write the unencrypte

APR::Socket SSL

2008-04-02 Thread Mike Cardwell
Hi, I'm writing a PerlProcessConnectionHandler. It starts: sub handler { my $c = shift; my $sock = $c->client_socket; $sock is an instance of APR::Socket. The problem is that the connection is using SSL and I need to be able to read/write the unencrypted socket stream. If $soc

Modperl: modperl-2.0_20080229115113 Make fail w/ missing runtime defs plus t/apr/finfo and vhost/config errors

2008-02-29 Thread O'DELL, TODD E (ATTOPS)
f more info is needed or what I might try! Test Summary ( again details under the bug report ) Test Summary Report ------- t/apr-ext/brigade.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP outp

Re: APR::SockAddr

2008-01-07 Thread Axel Huizinga
Philippe M. Chiasson schrieb: Axel Huizinga wrote: Hi, Suddenly on of my mod_perl handlers is broken with the following error: Can't locate object method "ip_get" via package "APR::SockAddr" at line: my $ip = $self->{r}->connection->remote_addr->

Re: APR::SockAddr

2008-01-06 Thread Philippe M. Chiasson
Axel Huizinga wrote: Hi, Suddenly on of my mod_perl handlers is broken with the following error: Can't locate object method "ip_get" via package "APR::SockAddr" at line: my $ip = $self->{r}->connection->remote_addr->ip_get; (temporary replaced by $ENV{&

APR::SockAddr

2008-01-06 Thread Axel Huizinga
Hi, Suddenly on of my mod_perl handlers is broken with the following error: Can't locate object method "ip_get" via package "APR::SockAddr" at line: my $ip = $self->{r}->connection->remote_addr->ip_get; (temporary replaced by $ENV{'REMOTE_ADDR&

Re: Modifiable APR::Request::Param::Table

2007-11-26 Thread Jimmy Li
gt; How did you put all the request parameters into an APR::Table object? > > Did you figure out an easy way to do it? > > > > Jimmy > > > > Looking at the APR::Request::Param::Table API (near the bottom of this > page: > http://httpd.apache.org/apreq/docs/libapreq

Re: Modifiable APR::Request::Param::Table

2007-11-25 Thread Jimmy Li
> What I ultimately did to get around this was modify the param scrubbing > code that wanted to modify param so that what it created a new instance > of an APR::Table, which does implement STORE when tied, and put > everything in there. > > Adam How did you put all the request

Re: Modifiable APR::Request::Param::Table

2007-11-25 Thread Perrin Harkins
On Nov 25, 2007 11:43 AM, Adam Prime <[EMAIL PROTECTED]> wrote: > The rub here for me is that in apreq1 you could modify param just fine, > but that in apreq2 you cannot. None of the porting documents mention > this unfortunately. The PORTING section of the Apache2::Request docs do say this. I t

Re: Modifiable APR::Request::Param::Table

2007-11-25 Thread Adam Prime
Perrin Harkins wrote: >> Get the request parameters using the tied APR::Request::Param::Table object (which is returned by Apache2::Request->new($r)->param in scalar context) as well as being able to modify the request parameters in the tied APR::Request::Param::Table object.

Re: Modifiable APR::Request::Param::Table

2007-11-23 Thread Jimmy Li
wrote: > On Nov 23, 2007 5:57 PM, Jimmy Li <[EMAIL PROTECTED]> wrote: > > I am using Apache2::Request - APR::Request::Param::Table is just the > > underlying table used by Apache2::Request. > > Sorry, I was thinking you were using the mod_perl API directly. > > >

Re: Modifiable APR::Request::Param::Table

2007-11-23 Thread Perrin Harkins
On Nov 23, 2007 5:57 PM, Jimmy Li <[EMAIL PROTECTED]> wrote: > I am using Apache2::Request - APR::Request::Param::Table is just the > underlying table used by Apache2::Request. Sorry, I was thinking you were using the mod_perl API directly. > Get the request parameters usi

Re: Modifiable APR::Request::Param::Table

2007-11-23 Thread Jimmy Li
I am using Apache2::Request - APR::Request::Param::Table is just the underlying table used by Apache2::Request. What I'm ultimately trying to do is this: Get the request parameters using the tied APR::Request::Param::Table object (which is returned by Apache2::Request->new($r)->para

Re: Modifiable APR::Request::Param::Table

2007-11-23 Thread Perrin Harkins
On Nov 22, 2007 2:36 PM, Jimmy Li <[EMAIL PROTECTED]> wrote: > I'm currently using the tied APR::Request::Param::Table object to get > request parameters. However, this tied object does not implement STORE > so I cannot add or modify information in this object. Can you

Modifiable APR::Request::Param::Table

2007-11-22 Thread Jimmy Li
Hello, I'm currently using the tied APR::Request::Param::Table object to get request parameters. However, this tied object does not implement STORE so I cannot add or modify information in this object. For my project I need to be able to modify request parameters. I've tried doing

Re: Solution to apr stdio/msvc crt/service handles and logging

2007-09-29 Thread Randy Kobes
On Thu, 27 Sep 2007, William A. Rowe, Jr. wrote: Randy Kobes wrote: I'm currently rebuilding everything with VC 8 (the free version), and will report on that later. Yea - I discovered it's quite impossible to get msvcrt-linked activestate to cooperate with openssl compiled against msvcr80, a

Re: Solution to apr stdio/msvc crt/service handles and logging

2007-09-28 Thread Tom Donovan
ectly with mod_fcgid v2.2 and with mod_fastcgi (the 9/23/2007 snapshot). Both modules needed to be changed (of course) to accommodate the new APR_NO_FILE requirement. The change was straightforward. I tested with the Apache 2.2.6-r2 source + your patch: http://people.apache.org/~wrowe/apr-1.2-

Re: Solution to apr stdio/msvc crt/service handles and logging

2007-09-28 Thread William A. Rowe, Jr.
Randy Kobes wrote: > > The patched version built fine, and with the svn mod_perl2 > sources, and perl-5.8.8 (ActivePerl 822), all the mp2 > tests passed using VC++ 6. Great work! FYI I'm waiting on a third set of eyeballs before this is all committed. I'd especially appreciate any input from Tom

Re: Solution to apr stdio/msvc crt/service handles and logging

2007-09-27 Thread William A. Rowe, Jr.
Randy Kobes wrote: > > I'm currently rebuilding everything with VC 8 (the free > version), and will report on that later. Yea - I discovered it's quite impossible to get msvcrt-linked activestate to cooperate with openssl compiled against msvcr80, and probably not against httpd+mod_perl against m

Re: Solution to apr stdio/msvc crt/service handles and logging

2007-09-27 Thread Randy Kobes
On Thu, 27 Sep 2007, William A. Rowe, Jr. wrote: http://people.apache.org/~wrowe/apr-1.x-win32-nohandle.patch FYI - that one does not apply cleanly to apr-1.2 (it's trunk) if you want the easily applied flavor, that would be; http://people.apache.org/~wrowe/apr-1.2-win32-nohandle.patch

Re: Solution to apr stdio/msvc crt/service handles and logging

2007-09-26 Thread William A. Rowe, Jr.
> http://people.apache.org/~wrowe/apr-1.x-win32-nohandle.patch FYI - that one does not apply cleanly to apr-1.2 (it's trunk) if you want the easily applied flavor, that would be; http://people.apache.org/~wrowe/apr-1.2-win32-nohandle.patch The httpd patch applies with little pain.

Solution to apr stdio/msvc crt/service handles and logging

2007-09-26 Thread William A. Rowe, Jr.
Presented in two parts, the first; http://people.apache.org/~wrowe/apr-1.x-win32-nohandle.patch contains several changes that I believe will help the modperl community, the mod_fcgid folks and virtually anyone attempting to do handle mashups of different posix based engines on Win32. In the

Re: apr

2007-09-15 Thread Issac Goldstand
Probably because the $r you're passing it is just "Apache2::RequestRec" and not really the request object that Apache2::Request wants... Issac Eli Shemer wrote: > Hey again > > Once I add the apr object I get no error but I also receive no output on > th

RE: apr

2007-09-15 Thread Eli Shemer
ed symbols in my error_log -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Perrin Harkins Sent: Friday, September 14, 2007 9:55 PM To: Eli Shemer Cc: modperl@perl.apache.org Subject: Re: apr On 9/14/07, Eli Shemer <[EMAIL PROTECTED]> wrote: >

Re: apr

2007-09-14 Thread Perrin Harkins
On 9/14/07, Eli Shemer <[EMAIL PROTECTED]> wrote: > Once I add the apr object I get no error but I also receive no output on the > screen. What are you trying to do? You can't use the mod_perl stuff in a command-line script outside of mod_perl. > my $r=Apache2::RequestRec

apr

2007-09-14 Thread Eli Shemer
Hey again Once I add the apr object I get no error but I also receive no output on the screen. Any thoughts ? #!/usr/bin/perl use Apache2::Request; my $r=Apache2::RequestRec; #my $apr = Apache2::Request->new($r); $r->content_type('text/html'); $r->headers_out(); print "bla";

APR::Request::Param subclassing

2007-06-08 Thread John ORourke
Hi, I know this isn't the apreq list but I don't suppose anyone has an example of subclassing APR::Request::Param? I'm trying this: package My::Handler; sub handler { ... my $query=Apache2::Request->new(); my $params=$query->param(); $params->para

Re: PerlProcessConnectionHandler and APR::Socket->poll()

2007-02-15 Thread Colin Meyer
[$timeleft]" ); > my $rc = $sock->poll( > $c->pool, > int( $timeleft * 1_000_000 ), # timeleft is seconds > APR::Const::POLLOUT > ); > log_stuff( "poll result: [$rc] [" . APR::Error:

PerlProcessConnectionHandler and APR::Socket->poll()

2007-02-14 Thread Colin Meyer
Hi, I am building a mod_perl PerlProcessConnectionHandler, and am using nonblocking sockets, for fine-grained error control. My first question is regarding a bit of documentation ambiguity about the poll() method. 'perldoc APR::Socket' says that the timeout is milliseconds, but t

Re: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread Philip M. Gollucci
#x27;t a redirect example using libapreq2, does that mean it doesn't work with redirects?? You should be able to use Exapmle #2 replacing CGI::Cookie calls with APR:: calls as show in example #3. Leave th redirect intact. There is no example because I didn't write one.. It definit

Re: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread John ORourke
cfaust-dougot wrote: I'm always passing a relitive path to "Location" so I didn't think it would matter.. Sure enough once I simply added 'Path => '/'," to all my cookie create statements, SUCCESS!!! Yay! Has to be said I only thought of the hostname because I do the path out of habit! By th

RE: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread cfaust-dougot
WooHoo!!! Thanks John, Clinton and Philip, you guys rock!! -Chris From: John ORourke [mailto:[EMAIL PROTECTED] Sent: Sat 12/9/2006 1:19 PM To: cfaust-dougot Cc: modperl@perl.apache.org Subject: Re: Apache2::Cookie/APR::Request::Cookie Ummm... this should b

Re: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread John ORourke
--- *From:* Philip M. Gollucci [mailto:[EMAIL PROTECTED] *Sent:* Sat 12/9/2006 12:26 PM *To:* cfaust-dougot *Cc:* Clinton Gormley; modperl@perl.apache.org *Subject:* Re: Apache2::Cookie/APR::Request::Cookie cfaust-dougot wrote: > Thanks Clinton,John and Philip.. Everyt

RE: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread cfaust-dougot
sing libapreq2, does that mean it doesn't work with redirects?? Thanks -Chris From: Philip M. Gollucci [mailto:[EMAIL PROTECTED] Sent: Sat 12/9/2006 12:26 PM To: cfaust-dougot Cc: Clinton Gormley; modperl@perl.apache.org Subject: Re: Apache2::Cookie/APR::Re

RE: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread cfaust-dougot
t; return Apache2::Const::REDIRECT; I'm guess it doesn't cause when it does work I'm doing $r->err_headers_out->add( 'Set-Cookie', $cookie->as_string ); return Apache2::Const::OK; I don't get it then, I'm using the same exact thing in both the case

Re: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread Clinton Gormley
> See these FAQs: > http://perl.apache.org/docs/2.0/user/coding/cooking.html Thanks for that Philip - just seen the issue I had in my live code... And Chris, ignore what I said about add() and set() - I was confused. > >

Re: Apache2::Cookie/APR::Request::Cookie

2006-12-09 Thread Philip M. Gollucci
cfaust-dougot wrote: Thanks Clinton,John and Philip.. Everything is helpful. Can I ask if there is something different when redirecting? It would appear the cookie isn't being sent in a redirect. When logging in from the post form I see the "Set-Cookie" header being set but when I redirect

  1   2   3   4   >