3 url="http://dodo.birds.lan/brisk/test.php"
4 # url="http://dodo.birds.lan/pippo.php"
6 rm -f engine_test.log engine_test.out engine_test.in
25 if [ $to_tot -gt 10 ]; then
26 for i in $(seq 1 $((to / 10))); do
27 echo "_123456789abcdef_123456789abcdef_123456789abcdef_123456789abcdef_123456789abcdef_123456789abcdef_123456789abcdef_123456789abcdef_123456789abcdef_123456789abcdef" | tr -d '\n' >> engine_test.tmp
34 for i in $(seq 1 $to); do
35 echo "_123456789abcdef" | tr -d '\n' >> engine_test.tmp
37 in_md5="$(cat engine_test.tmp | tr -d '\n' | md5sum | cut -c 1-7)"
38 echo "data=" | tr -d '\n' > engine_test.in
39 cat engine_test.tmp >> engine_test.in
41 if [ "$USE_WGET" = "y" ]; then
42 echo "Started wget, sent "$((to_tot * 16))" (MD5 $in_md5) ... " | tr -d '\n'
43 wget --post-file=engine_test.in -q -o engine_test.log -O engine_test.out "$url"
45 echo "Started curl, sent "$((to_tot * 16))" (MD5 $in_md5) ... " | tr -d '\n'
46 curl -d @engine_test.in -o engine_test.out "$url" > engine_test.log 2>&1
49 echo "returned "$(cat engine_test.out | wc -c)" (MD5 "$(cat engine_test.out | md5sum | cut -c 1-7)")."