[Catalyst] How to access $c-apache in 5.9?

2012-04-19 Thread Hailin Hu
I'm trying to log username authenticated throught ldap into a log file, and I use Apache/mod_perl. In 5.8 $c-apache-user( $username ); works, which doesn't work in 5.9. I checked source code of relevant modules like Catalyst Catalyst::EngineLoader Catalyst::Upgrading It seems like that

Re: [Catalyst] How to access $c-apache in 5.9?

2012-04-20 Thread Hailin Hu
wrote: Hailin == Hailin Hu i...@h2l.name writes: Hailin Finally, something like below works for me. Hailin my $apache = $c-engine-env-{'psgi.input'}; # Hailin Apache2::RequestRec $apache-user( $username ); Hailin I supposed that an accessor of apache should be a method

Re: [Catalyst] X-Forwarded-Port works no more?

2012-07-24 Thread Hailin Hu
I'm afraid only Catalyst::Engine::CGI cares about X-Forwarded-Port as described in the doc. You can try to write your own uri_for() to use X-Forwarded-Port. On Tue, Jul 24, 2012 at 3:22 PM, Alex Povolotsky tark...@over.ru wrote: On 07/23/12 21:52, Tomas Doran wrote: On 23 Jul 2012, at 08:48,

Re: [Catalyst] Problem with Catalyst 5.8 and mod_perl 2

2012-07-29 Thread Hailin Hu
http://perl.apache.org/docs/2.0/user/config/config.html#C_modperl_ modperl doesn't set %ENV like CGI be default. you can use PerlPassEnv. On Sun, Jul 29, 2012 at 11:48 PM, linuxsupport lin.supp...@gmail.com wrote: Yes PassEnv GEOIP_COUNTRY_CODE I dumped the %ENV, and got following [debug]

Re: [Catalyst] Problem with Catalyst 5.8 and mod_perl 2

2012-07-29 Thread Hailin Hu
Are you sure GEOIP_COUNTRY_CODE does exist? On Mon, Jul 30, 2012 at 12:18 AM, linuxsupport lin.supp...@gmail.com wrote: I tried PerlPassEnv GEOIP_COUNTRY_CODE but still not getting it in %ENV On Sun, Jul 29, 2012 at 8:39 PM, Hailin Hu i...@h2l.name wrote: http://perl.apache.org/docs/2.0

Re: [Catalyst] $c-write() buffering?

2013-10-30 Thread Hailin Hu
It is an engine relevant stuff. Find which engine you are using ( for example, Plack::Handler::FCGI ) and look around codes around write(r), you may find something. Good luck :) On Wed, Oct 30, 2013 at 9:51 AM, Daniel J. Luke dl...@geeklair.net wrote: I've got some legacy CGI code that does a

Re: [Catalyst] Handling uploaded file for multipart request

2014-04-18 Thread Hailin Hu
You can't get the content directly. The file uploaded is saved in the tmp directory. See doc below: http://search.cpan.org/~jjnapiork/Catalyst-Runtime-5.90061/lib/Catalyst/Request/Upload.pm On Fri, Apr 18, 2014 at 5:45 PM, Chakkit Ngamsom chak...@ibiz.co.th wrote: Hi All, I’ve trouble when