Page MenuHomePhabricator

T134989.sh

Authored By
ema
May 14 2016, 11:03 PM
Size
335 B
Referenced Files
None
Subscribers
None

T134989.sh

#!/bin/bash
url="http://localhost:81/"
size=612
for x in {1..1000}; do
echo "$x -> $url"
curl -v -w 'SIZE: %{size_download}' -H 'X-Forwarded-Proto: https' -H 'Host: query.wikidata.org' $url 2>&1 | tee test.${x} | egrep 'SIZE|X-Cache| Age:'
sleep 4
grep "^SIZE: ${size}$" test.${x} > /dev/null && rm test.${x}
done

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3726388
Default Alt Text
T134989.sh (335 B)

Event Timeline