« 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.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name is required. Email address will not be displayed with the comment.)

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