Apache2::Cookie and SameSite

2020-09-07 Thread Andrew Green
Hi all, I’d like to be able to set SameSite=Strict on a cookie generated using Apache2::Cookie, but if I simply try to set that parameter, I get the following error: Can't locate object method "SameSite" via package "Apache2::Cookie” Is it possible? Many thanks, Andrew.

Setting a MIME type on $r->custom_response

2019-09-24 Thread Andrew Green
all or afterwards): $r->content_type("application/json; charset=utf-8”); It’s not a huge deal — and I haven’t yet tested whether React freaks out over the Forbidden HTTP status regardless. But if there’s a way to do this, I’d love to know. Thanks! Cheers, Andrew. -- Andrew Green

Re: Upgrading a mod_perl application from Apache 2.2 to Apache 2.4

2018-12-07 Thread Andrew Green
tu) mod_apreq2-20090110/2.8.0 Perhaps it’s inconsistent across distributions? Cheers, Andrew. -- Andrew Green Article Seven Limited http://www.article7.co.uk/ <http://www.article7.co.uk/> Article Seven Limited is a registered company in England and Wales. Registered number: 5703656. R

Re: Upgrading a mod_perl application from Apache 2.2 to Apache 2.4

2018-12-06 Thread Andrew Green
ription. Cheers, Andrew. -- Andrew Green Article Seven Limited http://www.article7.co.uk/ <http://www.article7.co.uk/> Article Seven Limited is a registered company in England and Wales. Registered number: 5703656. Registered office: 10 Hamilton Road, Sidcup, Kent, DA15 7HB.

Re: Upgrading a mod_perl application from Apache 2.2 to Apache 2.4

2018-12-06 Thread Andrew Green
f = shift; # So this compiles under old Apache no strict 'subs'; if ($self->is_old_apache) { return Apache2::Const::OK; } else { return Apache2::Const::AUTHZ_GRANTED; } } Thanks again to you all for your help. Cheers, Andrew. -- Andrew Green Article Se

Upgrading a mod_perl application from Apache 2.2 to Apache 2.4

2018-11-30 Thread Andrew Green
my app on both Apache 2.2 and Apache 2.4 servers. Is there anything in the API that would let me determine which one is in use, so that I can allow for both in my code? Many thanks for any pointers! Cheers, Andrew. -- Andrew Green Article Seven Limited http://www.article7.co.uk/ Article

Re: Using add_config to trigger authentication

2011-03-23 Thread Andrew Green
rlTransHandler. I'd moved things around in my experiments earlier! Thanks so much again for the help and advice. Cheers, Andrew. -- Andrew Green Article Seven Limited http://www.article7.co.uk/ Article Seven Limited is a registered company in England and Wales. Registered number: 57036

Re: Using add_config to trigger authentication

2011-03-23 Thread Andrew Green
es a segfault: $r->push_handlers(PerlMapToStorageHandler => Apache2::Const::DECLINED); > The problem with the PerlHeaderParserHandler is that it is skipped for > subrequests. That might in your case affect security. Thanks -- that's very useful to know. Cheers, Andrew. -- Andr

Re: Using add_config to trigger authentication

2011-03-23 Thread Andrew Green
ar. Thanks so much, Torsten -- you're a star! Interestingly, adding a PerlMapToStorageHandler caused a segfault, but using a PerlHeaderParserHandler instead (with identical code) worked like a dream. Cheers, Andrew. -- Andrew Green Article Seven Limited http://www.article7.co.uk/ Article Seven Li

Using add_config to trigger authentication

2011-03-23 Thread Andrew Green
Hi all, I'm putting together a mp2 application where I'd like to trigger authentication from within a PerlTransHandler, and not from httpd.conf. As I understand it, the following should work: - use Apache2::RequestUtil (); $r->add_config(['require valid-user']); $r->push_handlers(PerlAut

Falling back from Apache::AuthCookieNTLM

2005-12-16 Thread Andrew Green
Hi, I'm developing an intranet application with authentication provided by Apache::AuthCookieNTLM. Tests are working perfectly for internal users (thank-you module authors) -- but the site must also be available to external users through an extranet. The requirement here is that, where a user

Re: [mp1] "Can't locate object method 'handler' via package 'handler'..."

2005-03-18 Thread Andrew Green
he SV numbers are different for each). I suspect that the problems occur after a restart that results in those errors. The log from yesterday corroborates this, but I don't yet have enough evidence to be sure. Cheers, Andrew. -- :: article seven Andrew Gr

[mp1] "Can't locate object method 'handler' via package 'handler'..."

2005-03-17 Thread Andrew Green
Hi, I'm encountering an occasional error with a couple of Apache::Registry scripts, exemplified thus: Can't locate object method "handler" via package "handler" (perhaps you forgot to load "handler"?) at /path/to/my/registry/program line 12. Here's the program up to and

Re: [mp1] Method handler that eventually seems to "forget" it's a method handler

2005-02-02 Thread Andrew Green
use MyApp::MyInstall::Dispatcher (); Thanks for your help. Cheers, Andrew. -- :: article seven Andrew Green automatic internet [EMAIL PROTECTED] | www.article7.co.uk

[mp1] Method handler that eventually seems to "forget" it's a method handler

2005-02-02 Thread Andrew Green
Hi, I seem to have a bizarre problem with method handlers on my setup. I have a set of different handlers, all of which are method handlers so that I can easily inherit shared code across a collection of different installations of my application on the same server. The first handler to get in

Apache::AuthenNTLM behind a proxy

2004-07-05 Thread Andrew Green
st=, domain=DOMAIN1, msg_len=0 [Mon Jul 5 15:04:50 2004] [error] access to /res/env.cgi failed for , reason: SMB Server connection not open in state 3 for /res/env.cgi Any ideas would be very much appreciated. Cheers, Andrew. -- :: article seven Andrew Gree

Re: "MySQL server has gone away"

2004-03-23 Thread Andrew Green
any application. Cheers, Andrew. -- :: article seven Andrew Green automatic internet [EMAIL PROTECTED] | www.article7.co.uk -- 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: "MySQL server has gone away"

2004-03-23 Thread Andrew Green
ay". Restarting Apache will bring MySQL back, but you'll still have lost your data. Cheers, Andrew. -- :: article seven Andrew Green automatic internet [EMAIL PROTECTED] | www.article7.co.uk -- Report problems: http://perl.apache.org/bugs

RE: "MySQL server has gone away"

2004-03-18 Thread Andrew Green
heers, Andrew. -- :: article seven Andrew Green automatic internet [EMAIL PROTECTED] | www.article7.co.uk -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/m

Re: "MySQL server has gone away"

2004-03-18 Thread Andrew Green
problem. Cheers, Andrew. -- :: article seven Andrew Green automatic internet [EMAIL PROTECTED] | www.article7.co.uk -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.or

Re: "MySQL server has gone away"

2004-03-18 Thread Andrew Green
Cheers, Andrew. -- :: article seven Andrew Green automatic internet [EMAIL PROTECTED] | www.article7.co.uk -- 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: mod_perl and mysql

2003-11-11 Thread Andrew Green
oublesome than Perl's. Amen to that. Cheers, Andrew. -- :: article seven Andrew Green automatic internet [EMAIL PROTECTED] | www.article7.co.uk -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html

Re: mod_perl and mysql

2003-11-11 Thread Andrew Green
On Tue, 11 Nov 2003 18:19:31 + (GMT), Ged Haywood wrote: > If you're using 5.8.0 right now you're probably best advised > to wait for Perl 5.8.2, as 5.8.1 has a few issues - but it does work > OK. Really? Is it ill-advised to use 5.8.1 in a production mod_perl environment? I'm in the proce