sukria/dancer2 — Issue #9: POST hang up
Author: geistteufel
Created: 2011-11-11 18:03:41+00:00
State: open

I have try POST:

prefix '/auth';
post '/login' => sub {
my ($user, $passwd) = (params->{user}, params->{passwd});
return _bad_auth() unless defined $user && defined $passwd;
return {
response => 'OK'
}
};

when I call this :

wget -O - --post-data='user=a' http://localhost/auth/login

it hang up, wait for something but nothing come