get.pl - Get a URL via command line without a running server
get.pl url
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
To install Poet, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Poet
CPAN shell
perl -MCPAN -e shell install Poet
For more information on module installation, please visit the detailed CPAN module installation guide.