« Day 13: use Plack::Test to test your application | Main | Day 15: Authenticate your app with Middleware »

12/14/2009

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Mateu

This is a small-fry detail, but the variable $name is un-used. To make the example a little more complete I'd change the content line to something like:

$res->content("Hello $name");

Then to demonstrate the capturing of the param one could do the following:

* plackup app.psgi
* curl http://localhost:5000/?name=Xavi
OR
* curl -d name=Xavi http://localhost:5000/

where app.psgi is the Plack::Request app demonstrated above. In the result of the curl operation one will see value of the name param.

The comments to this entry are closed.

June 2013

Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            
Blog powered by Typepad