From 5da8e864ed8426216e47a1d709f6ce761f52c743 Mon Sep 17 00:00:00 2001 From: Elliot Lee Date: Sat, 9 May 2015 09:44:41 -0700 Subject: [PATCH] Fix one-liner test command - Does not work without ` -X POST`, error `curl: (7) Failed to connect to localhost port 5000: Connection refused` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e507b19..d210f29 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Your app should now be running on `localhost:5000`. To test locally, you'll have to send some POST commands to `localhost:5000/commands`. Here's a one-liner to test starting a battle: ```Shell -$ curl -d '{"text":"pkmn battle me"}' -H 'Content-Type:application/json' "localhost:5000/commands" +curl -X POST -d '{"text":"pkmn battle me"}' -H 'Content-Type:application/json' "localhost:5000/commands" ``` To test other commands, change the text in the JSON object above.