mirror of https://github.com/coolaj86/fizzbuzz.git
added double quotes
This commit is contained in:
parent
41fb3a2c92
commit
59e44cbcef
|
@ -3,7 +3,7 @@
|
||||||
HOST=localhost:5080
|
HOST=localhost:5080
|
||||||
|
|
||||||
# immediatley adds a message to RoomA
|
# immediatley adds a message to RoomA
|
||||||
curl --silent http://${HOST}/RoomA \
|
curl --silent "http://${HOST}/RoomA" \
|
||||||
-X POST \
|
-X POST \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
-d '{
|
-d '{
|
||||||
|
@ -16,7 +16,7 @@ curl --silent http://${HOST}/RoomA \
|
||||||
|
|
||||||
|
|
||||||
# immediatley adds a message to RoomB
|
# immediatley adds a message to RoomB
|
||||||
curl --silent http://${HOST}/RoomB \
|
curl --silent "http://${HOST}/RoomB" \
|
||||||
-X POST \
|
-X POST \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
-d '{
|
-d '{
|
||||||
|
@ -30,7 +30,7 @@ curl --silent http://${HOST}/RoomB \
|
||||||
# should get the message
|
# should get the message
|
||||||
let WHEN=`date +%s`000-10000 # 10 seconds ago
|
let WHEN=`date +%s`000-10000 # 10 seconds ago
|
||||||
let THEN=`date +%s`000+10000 # 10 seconds from now
|
let THEN=`date +%s`000+10000 # 10 seconds from now
|
||||||
curl --silent http://${HOST}/RoomA?since=${WHEN}&until=${THEN} \
|
curl --silent "http://${HOST}/RoomA?since=${WHEN}&until=${THEN}" \
|
||||||
-X POST \
|
-X POST \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
-d '{
|
-d '{
|
||||||
|
@ -48,7 +48,7 @@ curl --silent http://${HOST}/RoomA?since=${WHEN}&until=${THEN} \
|
||||||
|
|
||||||
# this should post to RoomA and be seen in the request above
|
# this should post to RoomA and be seen in the request above
|
||||||
sleep 5
|
sleep 5
|
||||||
curl --silent http://${HOST}/RoomA \
|
curl --silent "http://${HOST}/RoomA" \
|
||||||
-X POST \
|
-X POST \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
-d '{
|
-d '{
|
||||||
|
|
Loading…
Reference in New Issue