hmm..testing with mod_perl and lwp

2006-09-18 Thread Greger
Okey so this is the situation I have right now: 0)mysql based application 1)server with mod_perl 2)client is browser for time being, might be a mobile terminal or "custom client application" in the future 3)testing ( with perl-unit ) 3.1)testing package method functionality separately from the ui 3

Re: Apache::Cookie -> Apache2::Cookie API Change?

2006-09-18 Thread Derek R. Price
This same problem occurs if I call A2::C->new without any value argument ("...new (-name => 'some_cookie', -expire => '-1D', -path => ..., -secure => 0)"), though I didn't verify the A:C->new behavior with no -value at all (only with -value => undef...). Derek Derek R. Price wrote: > Hello, > >

Apache::Cookie -> Apache2::Cookie API Change?

2006-09-18 Thread Derek R. Price
Hello, If this isn't the correct place to report this problem, please excuse the noise and redirect me... Apache::Cookie->new used to deal gracefully with an undefined -value argument (like: "...new (-name => 'some_cookie', -value => undef, ...)"), at least when -expire was in the past ("-1D" in

Re: Problems with __DATA__ within a module/handler and mod_perl2 (Own handler - NO CGI script) - Bug?

2006-09-18 Thread Thomas Wittek
Perrin Harkins schrieb: > Thomas Wittek wrote: >> The cursor on the DATA filehandle will be wrong: > > I think you just need to rewind it after reading it. See the docs for > seek() and tell(). Here's an example: No, the position is already wrong before any read. So saving it for later purposes

Re: Problems with __DATA__ within a module/handler and mod_perl2 (Own handler - NO CGI script) - Bug?

2006-09-18 Thread Perrin Harkins
Thomas Wittek wrote: The cursor on the DATA filehandle will be wrong: 133 at /usr/local/lib/perl/5.8.7/TestHandler.pm line 5. Warning: something's wrong at [..]/TestHandler.pm line 6. I think you just need to rewind it after reading it. See the docs for seek() and tell(). Here's an exampl

Problems with __DATA__ within a module/handler and mod_perl2 (Own handler - NO CGI script) - Bug?

2006-09-18 Thread Thomas Wittek
Hello! I guess I've found a bug in mod_perl2. But I'd like to ask the users list first, if anyone has an idea what goes wrong. I've run into troubles accessing the __DATA__ section of my modules/handlers. A minimal demonstration handler looks like this: #!/usr/bin/perl package TestHandler; su

RE: [CGI] Can't Execute Script on Apache

2006-09-18 Thread Simon Wray
I'll probably move this to the beginners-cgi list at Sean's suggestion. But just to try and wrap up one specific point... I've been following the information here: http://httpd.apache.org/docs/1.3/howto/cgi.html and also looking at Includes here: http://httpd.apache.org/docs/1.3/howto/ssi.html T

Re: [CGI] Can't Execute Script on Apache

2006-09-18 Thread Joel Bernstein
On Mon, Sep 18, 2006 at 12:46:43PM +0100, Simon Wray wrote: > > The error log contains no entry pertaining to the loading of the page. > Which makes me think the script has been located & executed... Really? Not just that it didn't even parse the file for SSI? That's how I'd read it. Change the s

Re: [CGI] Can't Execute Script on Apache

2006-09-18 Thread Sean Davis
On Monday 18 September 2006 07:46, Simon Wray wrote: > The error log contains no entry pertaining to the loading of the page. > Which makes me think the script has been located & executed... > > I didn't think I needed to set up SSI because I'm using exec and I have > ExecCGI configured. I.e. I'm n

RE: [CGI] Can't Execute Script on Apache

2006-09-18 Thread Simon Wray
The error log contains no entry pertaining to the loading of the page. Which makes me think the script has been located & executed... I didn't think I needed to set up SSI because I'm using exec and I have ExecCGI configured. I.e. I'm not using Include. Thanks Simon -Original Message- F

Re: [CGI] Can't Execute Script on Apache

2006-09-18 Thread Sean Davis
On Monday 18 September 2006 07:18, Simon Wray wrote: > Hi > > > > I'm trying to execute a simple Perl and/or Python script on Apache2.2 > from within an HTML document, but with no success. What does your error_log say? Also, it looks like you are using SSI, so you will need to make sure SSI is

[CGI] Can't Execute Script on Apache

2006-09-18 Thread Simon Wray
Hi   I’m trying to execute a simple Perl and/or Python script on Apache2.2 from within an HTML document, but with no success.   Please advise if this is the incorrect list to address this problem to.   I have a simple “Hello, World!” script in Perl that I want to execute from within a