diff --git a/testscript/curl.sh b/testscript/curl.sh new file mode 100755 index 0000000..63b02e0 --- /dev/null +++ b/testscript/curl.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +if [ $# != 3 ]; then + echo "$0 " + exit 1 +fi + +socks=$1 +n=$2 +url=$3 + +for i in `seq 1 $n`; do + curl -s --socks5 $socks $url >/dev/null + if [ $(($i % 1000)) -eq 0 ]; then + echo "finished $i request" + fi +done +