Skip to content

Instantly share code, notes, and snippets.

@amencke
Created July 13, 2021 04:52
Show Gist options
  • Save amencke/95e01db205ebcbb07ce014c2439df538 to your computer and use it in GitHub Desktop.
Save amencke/95e01db205ebcbb07ce014c2439df538 to your computer and use it in GitHub Desktop.
for i in {1..5}; do
VAL1=$((i % 2));
VAL2=$(( ($VAL1 + 1) % 2));
curl -H "Content-Type: application/json" \
-X POST \
-d '{"userID":'"${VAL1}"',"message":"Hello user '"${VAL1}"' from user '"${VAL2}"'!"}' \
http://localhost:8080/v1/conversation/123;
echo;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment