Last active
August 30, 2019 03:02
-
-
Save kukulogy/307a726d3bd7bcdd96383609ca30942e to your computer and use it in GitHub Desktop.
Race Condition Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Changed to use content-type flag instead of header: -H 'Content-Type: application/json' | |
siege -c50 -t60S 'http://domain.com/post/ POST val=value1&val2=value2' | |
# Bash | |
#!/bin/bash | |
for y in `seq 1 50` ; | |
do (for x in `seq 1 50` ; | |
do curl -d "val=value1&val2=value2" -X POST http://domain.com/post/ ; | |
done); | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment