Jonathan Swartz > Poet-0.13 > get.pl

Download:
Poet-0.13.tar.gz

Annotate this POD

CPAN RT

New  4
Open  2
View/Report Bugs
Source   Latest Release: Poet-0.15

NAME ^

get.pl - Get a URL via command line without a running server

SYNOPSIS ^

   get.pl url

DESCRIPTION ^

Runs a request through your Poet application in a single process without actually requiring a running server. The request will use the same psgi.app and pass through all the same middleware, etc. Uses Test::WWW::Mechanize::PSGI.

The url scheme and host are optional, so either of these will work:

    get.pl /action
    get.pl http://localhost/action

Because the request runs in a single process, it's easy to run through a debugger:

    perl -d get.pl /action

or profiler:

    perl -d:NYTProf get.pl /action
    nytprofhtml
syntax highlighting: