Last active
May 29, 2017 13:44
-
-
Save ivansostarko/145849421c03b03d4a93c8982b7d66ae to your computer and use it in GitHub Desktop.
Testing Rest API using cURL
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
#!/bin/bash | |
# API description | |
echo "Started TIME:" | |
dt=$(date '+%d/%m/%Y %H:%M:%S'); | |
echo "$dt" | |
for i in {1..1000000} | |
do | |
echo "Executed times: $i" | |
curl -H "X-Authorization: api-key" --data "param_1=one¶m_2=2" https://api.com/v1 | |
done | |
echo "Ended TIME:" | |
dt=$(date '+%d/%m/%Y %H:%M:%S'); | |
echo "$dt" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to run script: