Skip to content

Instantly share code, notes, and snippets.

@sdesalas
Last active April 8, 2023 13:13
Show Gist options
  • Save sdesalas/91851d846f98e336d49f637c7248b4c9 to your computer and use it in GitHub Desktop.
Save sdesalas/91851d846f98e336d49f637c7248b4c9 to your computer and use it in GitHub Desktop.
Bash oneline http rate limit test
!# /bin/bash
time for i in `seq 1 50`; do curl -s -o /dev/null -H "Authorization: $AUTH" -w "$i %{http_code}\n" http://localhost:8080/api/endpoint; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment