Skip to content

Listens for HTTP POSTs on arbitrary routes and repeats what it hears

Notifications You must be signed in to change notification settings

jamesmartin/http_post_parrot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About HTTP POST Parrot

HTTP Post Parrot is a little Sinatra web application that remembers data POSTed to a 'listen' route:

$ curl http://vivid-earth-821.heroku.com/listen/foo -d "bar" 

Remembered data can be retrieved by GETtting the associated 'repeat' route:

$ curl http://vivid-earth-821.heroku.com/repeat/foo 
$ bar

An instance of the app (currently the master branch) runs on Heroku. Feel free to give it a try.

To run your own version locally, do this: $ git clone http://github.com/jamesmartin/http_post_parrot $ bundle install $ rake start

You'll need the key/value datastore, redis. HTTP Post Parrot uses Redis to persist the data you post. To install redis on a homebrew enabled OSX, try:

$ brew install redis

Enjoy!

About

Listens for HTTP POSTs on arbitrary routes and repeats what it hears

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages