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/
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
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
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
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
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
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
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 &
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
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
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
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)"
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
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
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
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
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
> 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
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
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
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.
>>
>>
&
>
> 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
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->
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
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
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
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
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
',
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
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::
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
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
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
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
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
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
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
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
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
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:
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
>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
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 ,
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_
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
--
--
Hi.
If stat returns 777 (octal), protection returns 0x777 (hexadecimal). The
documentaion claiming this as the same value should be fixed.
Sincerely,
Joachim
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
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:
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
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
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
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
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->
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{&
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&
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
> 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
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
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.
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.
>
> >
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
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
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
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
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
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-
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
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
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
> 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.
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
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
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:
>
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
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";
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
[$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:
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
#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
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
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
---
*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
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
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
> 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.
>
>
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 - 100 of 317 matches
Mail list logo