Skip to content

Instantly share code, notes, and snippets.

@reiddraper
Created September 27, 2011 19:49
Show Gist options
  • Select an option

  • Save reiddraper/1246038 to your computer and use it in GitHub Desktop.

Select an option

Save reiddraper/1246038 to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
curl -X PUT -H "Content-Type: application/json" -d '{"props":{"allow_mult":true}}' \
"http://localhost:8098/riak/multiBucket"
curl -X DELETE "http://localhost:8098/riak/multiBucket/foo"
for num in 0 1 2 3 4
do
curl -X PUT -H "X-Riak-ClientId: py_ODYxNDAyNzUy" \
-H "Content-Type: text/plain" \
-H "Accept: text/plain" \
"http://localhost:8098/riak/multiBucket/foo" -d $num
done
curl -X GET -H "Accept: multipart/mixed" "http://localhost:8098/riak/multiBucket/foo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment