Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F4011885
T134989.sh
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
ema
May 14 2016, 11:03 PM
2016-05-14 23:03:35 (UTC+0)
Size
335 B
Referenced Files
None
Subscribers
None
T134989.sh
View Options
#!/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
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3726388
Default Alt Text
T134989.sh (335 B)
Attached To
Mode
P3103 T134989.sh
Attached
Detach File
Event Timeline
Log In to Comment