Skip to content

Commit

Permalink
Fix one-liner test command
Browse files Browse the repository at this point in the history
- Does not work without ` -X POST`, error `curl: (7) Failed to connect to localhost port 5000: Connection refused`
  • Loading branch information
intelliot committed May 9, 2015
1 parent 6479e68 commit 5da8e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5da8e86

Please sign in to comment.