Skip to content

Instantly share code, notes, and snippets.

@albovieira
Created September 22, 2017 20:18
Show Gist options
  • Save albovieira/a6017688c2355c9c0cb03a09b103efd4 to your computer and use it in GitHub Desktop.
Save albovieira/a6017688c2355c9c0cb03a09b103efd4 to your computer and use it in GitHub Desktop.
loop_request
#!/bin/sh
count=0
url='http://165.227.125.140:8000/api/v1/events/?format=json&limit=6'
while [ $count -lt 1000000 ]
do
curl -X GET \
$url \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-H 'postman-token: 22da3ccf-34d5-ea7e-7da8-e8bc18504b89'
count=`expr $count + 1`
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment