OpenFrame::Server::Direct - Provide direct access to OpenFrame
my $url = "http://localhost/myapp/?param=5"; my $cookietin = OpenFrame::AbstractCookie->new(); my $direct = OpenFrame::Server::Direct->new(); my $response; ($response, $cookietin) = $direct->handle($url, $cookietin); if ($response->code() == ofOK) { print $response->message() . "\n"; } else { print "Some sort of error. Drat.\n"; }
OpenFrame::Server::Direct provides direct access to an OpenFrame application (without having to set up Apache). It takes a URL as input and returns the OpenFrame::AbstractResponse object resulting from processing that URL. Note that you have to create a cookietin at the beginning, and keep on getting it back and passing it in in order for cookies to work.
OpenFrame::Server::Direct
OpenFrame::AbstractResponse
Leon Brocard <leon@fotango.com>
Copyright (C) 2001, Fotango Ltd.
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
To install OpenFrame, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenFrame
CPAN shell
perl -MCPAN -e shell install OpenFrame
For more information on module installation, please visit the detailed CPAN module installation guide.