Re: Where is the mod_perl development repo?

2017-03-09 Thread André Warnier
Hello. I am catching this at the end, but the general subject interests me, and I'd like to know more. Should I start a new thread ? and what best to name it ? My situation : I am not a hot-shot programmer nor perl expert, but over time I have written quite a few mod_perl-based pieces of

Re: WELCOME to modperl@perl.apache.org

2016-10-03 Thread André Warnier
Hi and welcome indeed. Maybe one thing first : when posting to the list, do not just hit "reply" on a message that you received previously. Create a *new* message, with a subject corresponding to what you are asking. Then later, when someone responds, you can "reply" and keep the subject

Re: Bad rap

2016-06-14 Thread André Warnier
On 13.06.2016 14:09, John Dunlap wrote: We use Amazon Cloudfront for serving all of our static content. The only thing we load from Apache is an index.html file to bootstrap into Ember.js. In our experience, Cloudfront delivers static content to the browser 5-6 times faster than our servers can.

Re: random token re-used in subsequent requests [SOLVED]

2016-05-31 Thread André Warnier
On 31.05.2016 18:40, Vincent Veyron wrote: On Fri, 27 May 2016 09:29:36 +0200 André Warnier <a...@ice-sa.com> wrote: The above strongly hints at some flaw in the srand() of perl, when called by a 32-bit perl, on a 64-bit OS/machine. Maybe it is worth passing this info along to th

Re: random token re-used in subsequent requests [SOLVED]

2016-05-27 Thread André Warnier
On 26.05.2016 16:01, Vincent Veyron wrote: On Mon, 16 May 2016 16:38:18 +0200 Vincent Veyron wrote: Out of five different servers, the code works fine on four machines, and a different token is generated every time the page is loaded or re-loaded. On one server however,

Re: random token re-used in subsequent requests

2016-05-18 Thread André Warnier
On 18.05.2016 01:23, Vincent Veyron wrote: On Tue, 17 May 2016 20:41:28 +0200 demerphq wrote: If you fork before you call (s)rand then each child process will have their own copy of the flag, which will be false, and thus will cause srand() to be called in the subprocess

Re: random token re-used in subsequent requests

2016-05-17 Thread André Warnier
On 17.05.2016 20:26, demerphq wrote: On 17 May 2016 at 20:23, demerphq <demer...@gmail.com> wrote: On 16 May 2016 at 20:03, Bruce Johnson <john...@pharmacy.arizona.edu> wrote: On May 16, 2016, at 10:15 AM, André Warnier (tomcat) <a...@ice-sa.com> wrote: join &quo

Re: random token re-used in subsequent requests

2016-05-17 Thread André Warnier
On 17.05.2016 14:11, Vincent Veyron wrote: On Tue, 17 May 2016 10:16:43 +0200 André Warnier <a...@ice-sa.com> wrote: I don't see above any signifiant difference in configuration between the servers, apart from the fact that the "faulty" server runs a 64-bit version of perl.

Re: random token re-used in subsequent requests

2016-05-16 Thread André Warnier
On 16.05.2016 20:03, Bruce Johnson wrote: On May 16, 2016, at 10:15 AM, André Warnier (tomcat) <a...@ice-sa.com> wrote: join "", map +(0..9,"a".."z","A".."Z")[rand(10+26*2)], 1..32 ; looks at first sight to me like quite inef

"SetEnv/SetEnvIf" and mod_perl

2015-10-02 Thread André Warnier
Hi again. Assuming this kind of configuration : SetEnvIf Request_URI \.gif$ gif-image SetHandler modperl PerlResponseHandler MyNiftyModule .. is there any way, in MyNiftyModule, to "get at" this "gif-image" variable ? Such as, would I find it as $ENV{'gif-image'} ? What kind of

Re: Apache2 filter

2015-10-02 Thread André Warnier
On 02.10.2015 10:19, James Smith wrote: perl -cw sometimes throws errors with mod_perl code - as it isn't running in the Apache environment... I get the same warning testing my output filter handler when running with -cw - but it works well in Apache...! This begs for a follow-up question,

Re: [Rusonyx #1410025]: Re: Enquiry about mod_perl project state

2015-08-15 Thread André Warnier
Hi. Isn't anyone going to do anything about (kindly) this Russian auto-responder ? Like, unsubscribe it from the list ? Rusonyx Support Team wrote: Randolf Richardson, Вы написали в компанию Русоникс и это письмо является автоматическим подтверждением того, что Ваша заявка поступила в

Re: Apache / mod_perl / Perl under Windows

2015-07-05 Thread André Warnier
Michael Lackhoff wrote: Am 03.07.2015 um 15:55 schrieb André Warnier: Grateful for any insight. No real insight but a working setup for development which runs from USB-stick and on about any system from XP 32bit to Windows 7 64bit (sorry, no experience with Windows server, all my servers run

Apache / mod_perl / Perl under Windows

2015-07-03 Thread André Warnier
Hi. Can someone help clearing my confusion (again) as to what kind of Apache / mod_perl / Perl combination works under Windows (32-bit and 64-bit) ? I thank Steve Hay many times for providing numerous versions of mod_perl for numerous versions of platforms and numerous versions of Active and

Re: Apache 2.4 and AAA

2015-05-30 Thread André Warnier
Kevin A. McGrail wrote: On 5/29/2015 1:52 PM, André Warnier wrote: Kevin A. McGrail wrote: On 5/29/2015 1:20 PM, André Warnier wrote: Over the years, I have created and modified and re-modified my own Apache/mod_perl authentication module, which was originally derived from Apache(2

Re: Apache 2.4 and AAA

2015-05-29 Thread André Warnier
Kevin A. McGrail wrote: On 5/29/2015 1:20 PM, André Warnier wrote: Over the years, I have created and modified and re-modified my own Apache/mod_perl authentication module, which was originally derived from Apache(2?)::AuthCookie (pilfered would be the correct term I guess). It currently runs

Apache 2.4 and AAA

2015-05-29 Thread André Warnier
Hi. Over the years, I have created and modified and re-modified my own Apache/mod_perl authentication module, which was originally derived from Apache(2?)::AuthCookie (pilfered would be the correct term I guess). It currently runs up to Apache 2.2, but I have heard/read in various places that

Re: mod_perl and apache 2.4

2015-04-30 Thread André Warnier
Hi. I honestly don't know if this will help you, because I have no idea about FreeBSD. But what I can tell you, is that I am running Apache 2.2 and mod_perl 2 succesfully on multiple servers, under various versions of Windows and under various versions of Linux, without any problems

Re: Large File Download

2015-03-28 Thread André Warnier
Randolf Richardson wrote: I know that it's possible(and arguably best practice) to use Apache to download large files efficiently and quickly, without passing them through mod_perl. However, the data I need to download from my application is both dynamically generated and sensitive so I cannot

Re: Disallow path info

2015-03-24 Thread André Warnier
Phillip Hellewell wrote: Good news. I got a helpful tip from a Dr James Smith to use a PerlFixupHandler that looks like this: package My::Fixup; use strict; use warnings; use utf8; use Apache2::Const qw(OK NOT_FOUND); sub handler { my $r = shift; return NOT_FOUND if $r-path_info;

Re: Disallow path info

2015-03-24 Thread André Warnier
Phillip Hellewell wrote: On Tue, Mar 24, 2015 at 3:44 AM, André Warnier a...@ice-sa.com wrote: You know, I am slowly getting the feeling that by dicing and slicing the URLs and fixing up things afterward, you are setting yourself up for some major headeaches later on, when something changes

Re: Are there windows binaries for 5.20?

2015-03-03 Thread André Warnier
: http://strawberryperl.com/releases.html section : 5.18.4.1 / 32bit - without USE_64_BIT_INT Once I corrected that (and re-installed the rest as per below), the error went away. Many, many thanks for the binaries, and sorry for the noise. André André Warnier wrote: Hi. I am a bit confused

Re: Are there windows binaries for 5.20?

2015-02-16 Thread André Warnier
Steve Hay wrote: ... Unfortunately you'll need to use VC++ for now because mod_perl doesn't currently support gcc/dmake (which is what both StrawberryPerl and ActivePerl now use). I hope to fix that soon, though... I'll be eternally grateful too, when you get to that point. I am also

Re: File Corrupt when download with ModPerl scripts

2015-02-05 Thread André Warnier
Michel, from what you describe below, this sounds very unlikely to be a perl or mod_perl issue. If I have to make a guess, I would say that what you download via perl/mod_perl is just not the same image file as what you think you download. Maybe it is a thumbnail version of the original

Re: mod_perl installed via yum but not used by application (RedHat 6.5 Apache 2.2.15 mod_perl 2.0.4)

2015-01-15 Thread André Warnier
BOUX Frederik wrote: Hello, I am using OTRS on a RedHat 6.5 with apache2 and mod_perl2. We are using these packages (yum info feedback): Installed Packages Name: httpd Arch: x86_64 Version : 2.2.15 Release : 39.el6 Name: mod_perl Arch: x86_64 Version

Re: undefined

2014-09-23 Thread André Warnier
Bill Moseley wrote: I'm printing like this: my $octets = 'Быстрая коричневая лиса चाँद पर'; $r-log-warn( $octets ); $r-log-warn( Encode::decode_utf8( $octets ) ); print STDERR $octets; But what I get in the logs is this: [Tue Sep 23 09:12:07 2014] [warn] [client 10.5.24.82]

Re: Shared Dirty memory of Apache parent process

2014-09-16 Thread André Warnier
Nageswara rao Gurram wrote: Hi, I am new to mod perl environment so this may looks naive. Recenlty I observed my apache processes are getting huge.. When I tried to dig this down I found apache parent process (rss memory , mainly shared dirty) itself is increasing with number of requests it

Re: Shared Dirty memory of Apache parent process

2014-09-16 Thread André Warnier
Hi. This is a bit beside your question below (for which I do not know the answer anyway). But if it is the case - that you have a number of Apache child processes which all need at start a certain initial table of data of 100-200 MB in size - that each of these children is going to modify

Re: lost directory indexes

2014-09-15 Thread André Warnier
Ruben Safir wrote: On Mon, Sep 15, 2014 at 12:24:13AM -0400, Ruben Safir wrote: Oh yeah -- Server version: Apache/2.2.23 (Unix) Server built: Dec 9 2012 17:26:38 Continuing on this I'm looking at what are the allowed options I added: use Apache2::Access; use Apache2::Const -compile =

Re: Perl Authorization handler called before authentication handler

2014-09-12 Thread André Warnier
Lathan Bidwell wrote: I have looked all around apache's documentation on how to upgrade from 2.2 to 2.4, but they don't include much about using PerlAddAuthzProvider or PerlAuthenHandler. I have this config section: PerlAddAuthzProvider membersuser Application::User::Members-authorize24

Re: mod_perl and utf8 and CGI-param

2014-09-03 Thread André Warnier
Hi Randal. Randal L. Schwartz wrote: Getting really frustrated with mod_perl2's apparent inability to probably read UTF8 input. Here's my mod_perl2 setup: Apache 2.2.[something] mod_perl 2.0.7 (or nearly that) ModPerl::Registry Perl script with CGI.pm Very early in my app: ##

Re: Authorization without Authentication?

2014-08-03 Thread André Warnier
Mark jensen wrote: I have seen this link: http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlAuthzHandler and as it said: This phase requires a successful authentication from the previous phase, because a username is needed in order to decide whether a user is authorized to access

Re: Authorization without Authentication?

2014-08-03 Thread André Warnier
Mark jensen wrote: Thanks I guess your answer will work for me if I have only static IPs but what I have suggested is an example, my DB or DNS zone is changing dynamically, can mod_perl deal with them as a DB? sub Handler { my $r = shift; my $c = $r-connection; my $user =

Re: bug in trunk in Apache::Reload test

2014-06-26 Thread André Warnier
There is also something to be said for writing clear and obvious code, even if it does cost a couple of CPU cycles of which there are about 2.5 billion available every second. I prefer this version : my $args = $r-args; if (defined($args) ($args eq 'last')) { ... } unless $args is used

Re: Problem with Apache2::AuthCookie and Apache 2.4: failed to resolve handler

2014-06-25 Thread André Warnier
Brian Candler wrote: OK I have it. The Debian-supplied version of Apache2::AuthCookie *does* have the patches from the httpd24 branch of authcookie, and the documentation for how to use it is in /usr/share/doc/libapache2-authcookie-perl/README.apache-2.4 Very useful information, thanks for

Re: what is world domination series?

2014-06-23 Thread André Warnier
I may be thick, or not in the loop, but I didn't get this. Care to provide a hint ? Mark Hedges wrote: *lol* ... `force install App::Ack` ... silly people :-) From: Mark Hedges Sent: Sunday, June 22, 2014 11:10 PM To: modperl@perl.apache.org Cc: Mark Hedges Subject: what is world domination

Something wrong with CPAN ?

2014-06-09 Thread André Warnier
Hi guys. Is it only me, or does the search box in www.cpan.org not work anymore ? 503 Service Unavailable No server is available to handle this request. (been like that for a couple of days now) If it is not me alone, and if someone here knows where to send a message about this, could you

Re: Something wrong with CPAN ?

2014-06-09 Thread André Warnier
I Close wrote: On 09/06/14 12:23, André Warnier wrote: Hi guys. Is it only me, or does the search box in www.cpan.org not work anymore ? 503 Service Unavailable No server is available to handle this request. (been like that for a couple of days now) I have noticed its seemingly been

Re: API Docs

2014-05-17 Thread André Warnier
Worik Stanton wrote: On 16/05/14 21:09, André Warnier wrote: Maybe you should start here : https://perl.apache.org/docs/2.0/user/handlers/intro.html#What_are_Handlers_ Thank you. That is very useful Welcome. One thing which you cannot complain about apparently, is the number of answers

Re: API Docs

2014-05-16 Thread André Warnier
Worik Stanton wrote: I am still trying to fathom the API. I have struck a snag with the documentation. https://perl.apache.org/docs/2.0/api/Apache2/Connection.html#Synopsis says use Apache2::Connection (); use Apache2::RequestRec (); my $c = $r-connection; What is $r? I am

Re: Apache 2.2 and Authorization Providers under mod_perl

2014-04-01 Thread André Warnier
Skylos wrote: Trying to migrate an application to mod_perl under apache 2.2 but my custom auth handlers are blowing up on failure to understand '$r-requires' method. The best I can make of it is that apache 2.2 revamped the auth system requiring the definition of providers (like 'group'

Re: PATCH: add -DAPACHE24 support to Apache::Test - necessary for Auth with Apache 2.4

2014-03-17 Thread André Warnier
Not an answer to your question, but many thanks for that module, for keeping it up-to-date, and for pointing out the differences in Apache 2.4. I used Apache::Cookie as a base to create my own module which does just about every authentication under the sun (for a particular back-end), and it was

Re: Initial setup problems with mod_perl2 - unable to locate modules

2014-02-16 Thread André Warnier
Da Rock wrote: ... Location /VHOST SetHandler modperl PerlResponseHandler Mod_home::Mod These 2 lines above should be enough. Again as I thought. But if I may ask (for later configuration), how is access controlled? Using auth or access in the perl module rather than

Re: Initial setup problems with mod_perl2 - unable to locate modules

2014-02-14 Thread André Warnier
Hi. Da Rock wrote: I know this may seem straight forward and a RTFM response may be in order, but I have been trying to crack this for some days now (following attempts on and off, too, mind) and nothing I can google seems to point to an accurate answer on what the problem is here. I'm

Re: Initial setup problems with mod_perl2 - unable to locate modules

2014-02-14 Thread André Warnier
André Warnier wrote: Hi. Da Rock wrote: I know this may seem straight forward and a RTFM response may be in order, but I have been trying to crack this for some days now (following attempts on and off, too, mind) and nothing I can google seems to point to an accurate answer on what

Re: Problem with Apache2::Connection::remote_ip

2014-02-09 Thread André Warnier
Steve Baldwin wrote: Hi, Not sure what I'm doing wrong here. I'm just trying to get the client ip address in a PerlResponseHandler as follows: : use Apache2::Connection; : my $remote_ip = $r-connection-remote_ip(); : I get a runtime error as follows: [Sun Feb 09 16:44:22.499681 2014]

Re: New Windows mod_perl binaries available for Perl 5.18.1

2013-10-27 Thread André Warnier
integers in Apache Lounge's Win32 build. Thank you very much. Really helps. André Warnier Mira Consulting GmbH

Re: Web Server Architecture

2013-09-05 Thread André Warnier
Joseph D Carroll Jr wrote: I am new to httpd (or any web server for that matter) and I am trying to play around with some things using Amazon Web Services. So as much as I may be looking for an answer, I am more interested in where I can figure all of this out. I am setting up a simple web

Re: [URGENT] Do not post below post on Internet

2013-08-20 Thread André Warnier
Hi. You do realise that the more attention you draw to this, the more likely someone is to really go search through the dozens of archived versions of these messages, to find what you are so worried about ? Do as someone wrote earlier : change that information on your servers, now. There is

Re: Detection connection reset by peer in mod_perl before send a response

2013-08-10 Thread André Warnier
Lucas wrote: Dear all. I need to detect that user pressed escape, apache receives it like connection reset by peer (I saw it with truss, freebsd strace), before my script will send a response to client. I can explain: my script works some time (about 2-3 sec), it gathers some data. Within

Re: mod_perl and Transfer-Encoding: chunked

2013-07-04 Thread André Warnier
Not disregarding the other answers to your questions, but I believe that maybe one aspect has been neglected here. Bill Moseley wrote: For requests that are chunked (Transfer-Encoding: chunked and no Content-Length header) calling $r-read returns *unchunked* data from the socket. That's

Re: mod_perl and Transfer-Encoding: chunked

2013-07-04 Thread André Warnier
Bill Moseley wrote: André, thanks for the response: On Thu, Jul 4, 2013 at 4:06 AM, André Warnier a...@ice-sa.com wrote: Bill Moseley wrote: First, if $r-read reads unchunked data then why is there a Transfer-Encoding header saying that the content is chunked? Shouldn't that header

Problem installing SOAP::SOM, in dependency SOAP::Lite

2013-06-01 Thread André Warnier
Hi. I don't really know if SOAP::Lite is supported or not ;-), but I saw PHRED lurking around here, so I'll try my luck. While trying to find my way around to interface with a Sharepoint web service, I encounter the following issue (visible at end if you want to skip to the flesh) : Platform

Re: [OT] Apache::DBI

2013-05-31 Thread André Warnier
Just butting in, apologies. It may not have been Jim's intention below, but I get the impression that his comments on CPAN are a bit harsh. It is true that a number of modules are apparently no longer supported. I have used many modules over the years, and sometimes have had problems with

Re: [OT] Apache::DBI

2013-05-31 Thread André Warnier
, and that doesn't happen in a day. Also, the significant question seems to be whether Apache::DBI is supported or not. From Mr. Zheng's point-of-view (in this case, the one that matters) the number might be much higher. -Jim On Fri, 31 May 2013, André Warnier wrote: Just butting in, apologies

Re: Perl module not reading/setting PerlSetEnv command on apache start

2013-05-14 Thread André Warnier
jitendra.s...@accenture.com wrote: I tried with /AMF path also with folder owner as nobody then also while starting apache its saying CacheDirectoryStore not exits.I tried following steps: (1) sudo su (that is for root user login) (2) Created folder AMF with owner as nobody. (3) Set PerlSetEnv

Re: Perl module not reading/setting PerlSetEnv command on apache start

2013-05-13 Thread André Warnier
Hi. And what makes you think that this is a mod_perl problem ? There is a fairly explicit error message (and support address) below, which tends to point to a problem in the add-on module or the configuration. jitendra.s...@accenture.com wrote: Gentlemen, I need urgent help from you in

Re: Perl module not reading/setting PerlSetEnv command on apache start

2013-05-13 Thread André Warnier
: jitendra.s...@accenture.com Mobile : (+91) 99 860 298 97 -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Monday, May 13, 2013 5:59 PM To: mod_perl list Subject: Re: Perl module not reading/setting PerlSetEnv command on apache start Hi. And what makes you think

Re: Perl module not reading/setting PerlSetEnv command on apache start

2013-05-13 Thread André Warnier
on these systems! # User nobody Group nobody /IfModule /IfModule # Met vriendelijke groet / With kind regards, Jitendra Soni KPN - Application Development Accenture | Bangalore INDIA Mailto : jitendra.s...@accenture.com Mobile : (+91) 99 860 298 97 -Original Message- From: André Warnier

Re: Perl module not reading/setting PerlSetEnv command on apache start

2013-05-13 Thread André Warnier
in conf file then start apache?? Met vriendelijke groet / With kind regards, Jitendra Soni KPN - Application Development Accenture | Bangalore INDIA Mailto : jitendra.s...@accenture.com Mobile : (+91) 99 860 298 97 -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Monday

Re: Mod_perl installation on Win 2008

2013-05-07 Thread André Warnier
ext-ma wrote: Hi. I am a consultant for a high-tech company and I have installed Bugzilla for their internal use. For various reasons the Apache server had to be installed on a Win2008 server. And for other reasons the server is Apache 2.0. I thought you said that this is a hi-tech company..

problems with CPAN

2013-05-07 Thread André Warnier
Hi. I understand that this is not properly speaking a mod_perl issue, more like a perl/cpan issue under Windows. But before I go subscribe to a couple more lists, maybe someone on this list has a clue and can help ? I recently update perl on my venerable Windows XP laptop, from ActivePerl 5.8

Re: New Windows mod_perl binaries available

2013-04-28 Thread André Warnier
Randolf Richardson wrote: For those who are interested, I've now uploaded binary builds of mod_perl-2.0.8 and libapreq2-2.13 components compatible with Apache Lounge 2.2.24 Build 25 February 2013 (win32) and each of: * ActivePerl 5.16.3 Build 1603 (x86) * Strawberry Perl 5.16.3 Build 1 (32bit)

Re: New Windows mod_perl binaries available

2013-04-28 Thread André Warnier
Steve Hay wrote: No problem! I've just uploaded builds for ActivePerl 1405 (5.14.4) and StrawberryPerl 5.14.4.1, which you can find in the same location as before: http://people.apache.org/~stevehay/ Thanks. You had your first customer for all 4 of them 2 minutes ago. Really grateful. Can

Apache option MultiViews interfering with mod_perl

2013-04-28 Thread André Warnier
Hi. It is quite certain that the basic reason for my troubles is my own lack of expertise, but I suppose that others may stumble into the same issue at some point, and this may help them avoid the loss of time involved. Basically, I had an Apache (2.2) configuration section as follows :

Windows XP, Apache, perl 5.16, mod_perl

2013-04-05 Thread André Warnier
Hi guys. We generally work on Linux Debian systems, and install Apache httpd, perl and mod_perl from the package manager, and it works great. However, for some cases - like my Windows XP development laptop - I would like a local copy of this all, to develop and test new software. (Also because

Re: Windows XP, Apache, perl 5.16, mod_perl

2013-04-05 Thread André Warnier
Michiel Beijen wrote: Hi Andre, On Fri, April 5, 2013 15:31, André Warnier wrote: Could you recommend one integrated solution for this, in terms of Apache httpd 2.2.x, and a recent perl version ? Like, something which works without having to spend a week resolving dependencies and

ActivePerl 5.16 CPAN

2013-04-05 Thread André Warnier
Hi. I know this is a mod_perl list, not a perl list per se, but maybe someone here knows the issue.. On my Windows XP laptop, I have just de-installed my old Perl 5.10 and installed ActivePerl 5.16 (which caused some issues with mod_perl now resolved, see previous post today). But I am

Re: [OT] AW: Unsuccessful stat on filename containing newline in RegistryCooker.pm

2013-02-28 Thread André Warnier
alexander.elg...@external.t-systems.com wrote: ... I am pretty shure, I tested the capability of filenames on a Linux (ext2) or Solaris (ufs) filesystem, a long time ago The outcome was, that you can use 254 different characters, except the '\0' and the '/'. But I agree, it is an annoyance it

Re: [OT] AW: Unsuccessful stat on filename containing newline in RegistryCooker.pm

2013-02-28 Thread André Warnier
demerphq wrote: On 28 February 2013 13:29, André Warnier a...@ice-sa.com wrote: alexander.elg...@external.t-systems.com wrote: ... I am pretty shure, I tested the capability of filenames on a Linux (ext2) or Solaris (ufs) filesystem, a long time ago The outcome was, that you can use 254

Re: [OT] AW: Unsuccessful stat on filename containing newline in RegistryCooker.pm

2013-02-28 Thread André Warnier
David Booth wrote: On 02/28/2013 09:32 AM, Torsten Förtsch wrote: On 02/28/2013 03:14 PM, demerphq wrote: A special place in hell is reserved for programmers that write code that assumes that spaces and other unprintables are illegal in a filename. Yes, right next door to another place in

Re: [OT] AW: Unsuccessful stat on filename containing newline in RegistryCooker.pm

2013-02-28 Thread André Warnier
Randolf Richardson wrote: alexander.elg...@external.t-systems.com wrote: ... I am pretty shure, I tested the capability of filenames on a Linux (ext2) or Solaris (ufs) filesystem, a long time ago The outcome was, that you can use 254 different characters, except the '\0' and the '/'.

Re: alias command in modperl environment

2012-12-19 Thread André Warnier
Feng He wrote: Hello, VirtualHost *:80 ServerAdmin x...@yyy.com ServerName example.com PerlModule Apache::DBI PerlPostConfigRequire /path/to/startup.pl Location / SetHandler modperl PerlResponseHandler Handler1 /Location

Re: setHandler question

2012-12-17 Thread André Warnier
Rafael Caceres wrote: ... What you want works for me when reverse proxying to Tomcat or another Apache by adding a require valid-user inside the LocationMatch Thanks for your interest. That would indeed work if my authentication sub returned an auth required when the request is not

Apache2 constants syntax question

2012-12-16 Thread André Warnier
Hi. I suppose that this is a bit academical, but I'm wondering anyway. In Apache2::Const, there are a number of constants member of the :common import group, which are (presumably) the same as their near equivalent in the :http import group. For example : Apache2::Const::FORBIDDEN ~

Re: setHandler question

2012-12-16 Thread André Warnier
André Warnier wrote: Torsten Förtsch wrote: On 12/15/2012 01:30 PM, André Warnier wrote: And somehow the $r-add_config() looks a bit like a roundabout way of achieving what I want. If I can, kind of, stuff an additional SetHandler configuration directive into the Apache configuration for my

Re: setHandler question

2012-12-15 Thread André Warnier
Torsten Förtsch wrote: On 12/14/2012 02:52 PM, André Warnier wrote: Or am I totally off-track here ? I think yes, you are confused by the similarity of finfo and OR_FILEINFO. Yes, I was. Thanks for setting me right. The finfo part of $r is simply a data structure that represents

Re: setHandler question

2012-12-15 Thread André Warnier
Torsten Förtsch wrote: On 12/15/2012 01:30 PM, André Warnier wrote: And somehow the $r-add_config() looks a bit like a roundabout way of achieving what I want. If I can, kind of, stuff an additional SetHandler configuration directive into the Apache configuration for my request, telling Apache

setHandler question

2012-12-14 Thread André Warnier
Hi. Quite a while ago (2008), this discussion on the list : http://marc.info/?l=apache-modperlm=122399752819709w=2 was about how to, within a PerlAuthenHandler, override the ResponseHandler which would normally kick in later in the cycle, and force it to be mod_perl and a specific (other)

Re: setHandler question

2012-12-14 Thread André Warnier
Ryan Gies wrote: On 12/14/2012 8:52 AM, André Warnier wrote: I suppose that in the end I will want to do something like this : my $finfo = $r-finfo(); # do something to $finfo to set the flag $r-finfo($finfo); $r-handler('modperl'); $r-set_handlers(PerlResponseHandler = \_my_response_handler

Charset in response

2012-11-29 Thread André Warnier
Hi. I have a problem with a PerlResponseHandler, regarding the character set used in the response to a request. Basically, the question is : how to I set the character set properly for the handle used in $r-print(string) ? (where string can be äéèöü for example) Neither of the following

Re: Charset in response

2012-11-29 Thread André Warnier
Addendum at end. André Warnier wrote: Hi. I have a problem with a PerlResponseHandler, regarding the character set used in the response to a request. Basically, the question is : how to I set the character set properly for the handle used in $r-print(string) ? (where string can be äéèöü

Re: Charset in response

2012-11-29 Thread André Warnier
Torsten Förtsch wrote: On 11/29/2012 10:37 AM, André Warnier wrote: When I say that it doesn't work, I mean in fact : - the Content-Type response header sent by the server is properly set according to what I do above (as verified in a browser plugin) - but if what I print contains accented

Re: Charset in response

2012-11-29 Thread André Warnier
André Warnier wrote: Torsten Förtsch wrote: On 11/29/2012 10:37 AM, André Warnier wrote: When I say that it doesn't work, I mean in fact : - the Content-Type response header sent by the server is properly set according to what I do above (as verified in a browser plugin) - but if what I print

Re: Charset in response

2012-11-29 Thread André Warnier
André Warnier wrote: André Warnier wrote: Torsten Förtsch wrote: On 11/29/2012 10:37 AM, André Warnier wrote: When I say that it doesn't work, I mean in fact : - the Content-Type response header sent by the server is properly set according to what I do above (as verified in a browser plugin

Re: Soulution maybe? for Re: Connection aborted was ModPerl::Util::exit: (120000) at Carp.pm line 590

2012-11-29 Thread André Warnier
Dave Morgan wrote: Hi All, Short summary, original problem ModPerl::Util::exit: (12) exit was called at /usr/share/perl5/CGI/Carp.pm line 590 after hacking out Carp Software caused connection abort. at 3 different places in our code The code in question is essentially

Re: get the incoming TCP protocol type

2012-11-26 Thread André Warnier
Vincent Veyron wrote: Le samedi 24 novembre 2012 à 16:58 +0100, André Warnier a écrit : Is there somewhere a is_secure() or something which provides that ? Or can I rely on the presence/absence of some request header ? Apache's mod_rewrite has the HTTPS RewriteCond directive, which I use

Re: get the incoming TCP protocol type

2012-11-26 Thread André Warnier
Torsten Förtsch wrote: On 11/26/2012 09:05 AM, André Warnier wrote: http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritecond there is apparently a server variable HTTPS which can be tested in a RewriteCond, and which looks just like what I need : HTTPS Will contain the text

use global data in handler (was : custom proxy setup with mod_perl)

2012-11-24 Thread André Warnier
Hi. This refers indirectly to the thread custom proxy setup with mod_perl, but is more general, I believe. For the PerlFixupHandler which was discussed before, I need to compare the current request URL to a predefined static list of URLs, to decide how exactly to proxy this call. At the

get the incoming TCP protocol type

2012-11-24 Thread André Warnier
Hi. Inside a mod_perl2 request handler, how can I find out if the current request was received via HTTP or HTTPS ? I mean : The client (browser e.g.) gets a URL http://host.x.y/path1/path2..;, and - translates host.x.y to an IP - makes a connection to that IP (and port) - sends a request like

custom proxy setup with mod_perl

2012-11-23 Thread André Warnier
Hi. I am trying to solve an unconventional (I think) issue with mod_perl (or even without it). Environment : Apache 2.2/mod_perl 2 under Linux. The issue : A number of workstations are in a LAN, using a local DNS server under my control. In the same LAN (192.168.45.0), I have a Linux host

Re: custom proxy setup with mod_perl

2012-11-23 Thread André Warnier
Torsten Förtsch wrote: On 11/23/2012 06:39 PM, André Warnier wrote: 1) is that early enough to be before the Apache ProxyPass step ? yes, the proxy works as usual in the response phase. 2) can I set the (corresponding hostname) above in such a Perl handler, or otherwise manipulate the URI

Re: custom proxy setup with mod_perl

2012-11-23 Thread André Warnier
Fred Moyer wrote: You might want to take a look at a mod_perl based proxy module I wrote - https://metacpan.org/module/Apache2::Proxy It was used in conjunction with Perlbal and a couple other tricks, but was pretty speedy given the crude nature of how I implemented it. No offense intended,

Re: custom proxy setup with mod_perl

2012-11-23 Thread André Warnier
Fred Moyer wrote: On Fri, Nov 23, 2012 at 2:18 PM, André Warnier a...@ice-sa.com wrote: Fred Moyer wrote: You might want to take a look at a mod_perl based proxy module I wrote - https://metacpan.org/module/Apache2::Proxy It was used in conjunction with Perlbal and a couple other tricks

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) So I have three

Re: question on sub-requests

2012-11-14 Thread André Warnier
Torsten Förtsch wrote: On 11/13/2012 07:17 PM, André Warnier wrote: I didn't want to take too much time of anyone before, which is why I somewhat oversimplified the issue. But considering the traffic on the lis os low, maybe you want to hear the whole story after all. The basic case

Re: question on sub-requests

2012-11-14 Thread André Warnier
Torsten Förtsch wrote: On 11/14/2012 02:48 PM, André Warnier wrote: I my particular case, the sendfile() solution above works fine, because I am sure in this case that no additional processing needs to take place on those static pages. What I meant in particular was the HTTP code 304

Re: Connection aborted was ModPerl::Util::exit: (120000) exit was called at /usr/share/perl5/CGI/Carp.pm line 590

2012-11-14 Thread André Warnier
Dave Morgan wrote: Original Message Thank you Andre, On 31/10/12 01:58 PM, André Warnier wrote: Dave Morgan wrote: How do I find out where the following call(s) are made from? See http://search.cpan.org/~dom/perl-5.14.3/lib/Carp.pm or by including the string -MCarp

Re: question on sub-requests

2012-11-13 Thread André Warnier
('bottomframe').src = /bottomframecontent/ + viewFile + .html; }; window.onload = loadFrames; /script /head frameset rows=100, * frame name=topframe src= frame id=bottomframe src= /frameset /html On 11/12/2012 3:42 PM, André Warnier wrote: Hi. Thank you for your response. You

Re: question on sub-requests

2012-11-13 Thread André Warnier
Torsten Förtsch wrote: On 11/12/2012 06:19 PM, André Warnier wrote: In response to some request URLs, I have to compose a response structured as follows : - a html frameset document with two frames - in the 1st frame, the result of another HTTP request to the same Apache server. This URI

  1   2   3   4   5   >