moth/contrib/smash

17 lines
252 B
Plaintext
Raw Permalink Normal View History

#! /bin/sh
2019-04-29 21:49:59 -06:00
## Run two of these to trigger the race condition from
2019-04-29 21:49:59 -06:00
BASEURL=http://localhost:8080
URL=$BASEURL/answer
while true; do
curl \
-X POST \
2019-04-29 21:49:59 -06:00
-F "cat=byobf" \
-F "points=10" \
-F "id=test" \
2019-04-29 21:49:59 -06:00
-F "answer=6" \
$URL
done