this command doesn't work?

Comment on Asterisk Manager API Action Command
Joined: Tue 16 of Nov, 2010

this command doesn't work?

Posted:Tue 16 of Nov, 2010 (22:46 UTC)
I'm using this command in php, but there is no answer...
when I try to make any command, shows me this error:

Response: Error
Message: No command provided

The code i'm using in php is this:

fputs($socket, "Action: Command\r\n\r\n");
fputs($socket, "Command: show channels\r\n\r\n");

am I doing something wrong?

thanks a lot!