Advertisement
aldikhan13

Siege Script Runner

Jul 13th, 2022 (edited)
1,385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.78 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. accessToken="ysDbvAwcIcDCOtC1HcCmChL5wWC6CejRPWD9.ysDjTWC6GsqcTQ1buQqcIcDtxRVfwgZevQfoKAxnSQfmFgHpvMCmChDpvAOcIcDtxRVfwcVbTA1jvcCmCgfbxWC6GNS1HtwtGXarHsqcTRbqCdirHdO3IXY3GdY3FWDbxQKcIcDov2LfFQZqwWD9.zx40Fx-3DDbHZH76Ts-pF6IIMbh5o7TkTi16yh7pfca"
  4. concureny=10
  5. timeout="1M"
  6. requestTime=30
  7. userAgent="PostmanRuntime/7.29.0"
  8. contentType="json"
  9. randomTextUrl="url.txt"
  10.  
  11. # siege -v -i -c ${concureny} -r ${requestTime} -t ${timeout} -A ${userAgent} -T ${contentType} -H "Authorization:Bearer $accessToken" -f "$randomTextUrl"
  12. siege -v -i -c ${concureny} -r ${requestTime} -t ${timeout} -A ${userAgent} -T ${contentType} -f "$randomTextUrl"
  13.  
  14. # create url.txt for multiple test request like this
  15. # https://jsonplaceholder.typicode.com/users
  16. # https://jsonplaceholder.typicode.com/todos
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement