Re: [Catalyst] Anyone using ProxyPass?

2007-07-03 Thread Richard Jones
Bill Moseley wrote: [EMAIL PROTECTED]:~$ sudo netstat -ltp | grep '85 ' tcp0 0 localhost:10085 *:* LISTEN 30585/apache2 tcp0 0 *:85*:* LISTEN 30577/apache2 Then in my app auto() I added: warn join \n, request

Re: [Catalyst] Anyone using ProxyPass?

2007-07-03 Thread Jason Kohles
On Jul 3, 2007, at 11:21 AM, Bill Moseley wrote: On Tue, Jul 03, 2007 at 11:24:34AM +0100, Richard Jones wrote: 1) There is definitely no $c-request-header('X-Forwarded-Host') Check if you have X-Forwarded-For. Also check the version of Apache if you are running 1.3, this wasn't added

[Catalyst] Uniform treatment of all parameters (including file uploads)

2007-07-03 Thread Zbigniew Lukasiak
I constantly bump into the mismatch in the treatment of 'normal' params and the file uploads. Wouldn't life be simpler if $c-request-param( 'file_field' ) would return a Catalyst::Request::Upload object (or an array of them)? You can get the name of the uploaded file from a

Re: [Catalyst] Anyone using ProxyPass?

2007-07-03 Thread Richard Jones
Bill Moseley wrote: On Tue, Jul 03, 2007 at 11:24:34AM +0100, Richard Jones wrote: 1) There is definitely no $c-request-header('X-Forwarded-Host') Check if you have X-Forwarded-For. Nope, no X-Forwarded-Anything! But I *do* see it in a dump of Apache's headers if I request the base url (ie

Re: [Catalyst] Uniform treatment of all parameters (including file uploads)

2007-07-03 Thread John Napiorkowski
--- Zbigniew Lukasiak [EMAIL PROTECTED] wrote: I constantly bump into the mismatch in the treatment of 'normal' params and the file uploads. Wouldn't life be simpler if $c-request-param( 'file_field' ) would return a Catalyst::Request::Upload object (or an array of them)? You can

Re: [Catalyst] Using Log4perl -- setting caller()

2007-07-03 Thread Quinn Weaver
On Mon, Jul 02, 2007 at 08:04:40AM -0700, Bill Moseley wrote: Also, I'd like to include request-specific items in the lot message. What would be the best way to get $c-req to the logger? I considered creating $c-info, $c-warn, and $c-error methods that add the request data I would like to

[Catalyst] Automatic structure creation from form data

2007-07-03 Thread Andrew Hayward
I'm relatively new to this Catalyst malarkey, so you'll have to bear with me for a minute. I was wondering if it possible to construct an HTML form such that the back end automatically creates a hash (or an array) based on the naming scheme. For example... form input name=items[0][name]

Re: [Catalyst] Automatic structure creation from form data

2007-07-03 Thread Mark Zealey
check out Catalyst::Controller::FormBuilder - it'll autogenerate your forms for you, handle validation etc etc. M On Tuesday 03 July 2007 7:19 pm, Andrew Hayward wrote: I'm relatively new to this Catalyst malarkey, so you'll have to bear with me for a minute. I was wondering if it possible

Re: [Catalyst] Automatic structure creation from form data

2007-07-03 Thread stephen joseph butler
On 7/3/07, Andrew Hayward [EMAIL PROTECTED] wrote: I'm relatively new to this Catalyst malarkey, so you'll have to bear with me for a minute. I was wondering if it possible to construct an HTML form such that the back end automatically creates a hash (or an array) based on the naming scheme.

Re: [Catalyst] Uniform treatment of all parameters (including file uploads)

2007-07-03 Thread Matt S Trout
On Tue, Jul 03, 2007 at 04:25:30PM +, Zbigniew Lukasiak wrote: I constantly bump into the mismatch in the treatment of 'normal' params and the file uploads. Wouldn't life be simpler if $c-request-param( 'file_field' ) would return a Catalyst::Request::Upload object (or an array of