[Maypole] Maypole::CLI output is inconsistent with the browser output

Simon Flack sf@flacks.net
Mon, 29 Nov 2004 21:10:16 +0000


On Mon, 29 Nov 2004 14:41:12 -0500, Seth Gordon wrote
> I'm testing an application-under-development with Maypole::CLI.  The 
> test script is simple:
> 
> [quote]
> #!/usr/bin/perl
> 
> use Maypole::CLI qw(JeevesLibrary);
> use Maypole::Constants;
> $ENV{MAYPOLE_TEMPLATES} = "/var/www/htdocs/library";
> 
> print JeevesLibrary->call_url("http://dynamic.ropine.com/library/");
> [unquote]
> 
> When I run the script with no arguments, I get the following:
[snip output]
> 
> The relevant section of my httpd.conf is:
> 
> [quote]
> # Maypole test
> <Perl>
>    use lib '/home/sethg/bin';
> </Perl>
> <Location /beerdb>
>    SetHandler perl-script
>    PerlHandler BeerDB
> </Location>
> <Location /library>
>    SetHandler perl-script
>    PerlHandler JeevesLibrary
> </Location>
> [unquote]
> 
> I want the output of the CLI script to give me the same pieces of 
> text that would be sent to the browser and to the error log.  What 
> am I doing wrong?

I may be off the mark, but are you setting uri_base in JeevesLibrary? e.g.
    JeevesLibrary->config->uri_base('http://dynamic.ropine.com/library/');

--simonflk