Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@phouverneyuff
Created May 17, 2019 20:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phouverneyuff/38d5cc51996d43a5c218c5a72a115e0a to your computer and use it in GitHub Desktop.
Save phouverneyuff/38d5cc51996d43a5c218c5a72a115e0a to your computer and use it in GitHub Desktop.
#!/bin/bash
time for ((i=1;i<=300;i++)); do \
curl --silent -X POST \
--happy-eyeballs-timeout-ms \
-d'{"numero_conta": 1, "cpf": "12000", "valor_saldo": 1000000000.0, "nome_titular": "Zé pilintra"}' \
-H "Content-Type: application/json" \
http://localhost:8080/exemplo/contacorrente > /dev/null 2>&1 ; \
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment