Skip to content

Instantly share code, notes, and snippets.

@phonedude
Created September 18, 2023 16:49
Show Gist options
  • Save phonedude/16eb31162628c4bdda94e30e9128e6c1 to your computer and use it in GitHub Desktop.
Save phonedude/16eb31162628c4bdda94e30e9128e6c1 to your computer and use it in GitHub Desktop.
mln-phonedude:~ mln$ more tco-test-with-headers
#!/bin/tcsh -x
time curl -i -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:78.0) Gecko/20100101 Firefox/78.0' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://twitter.com/notifications' -H 'Connection: keep-alive' https://t.co/SLUCgW6Pdo > /dev/null
time curl -i -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:78.0) Gecko/20100101 Firefox/78.0' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://twitter.com/notifications' -H 'Connection: keep-alive' https://t.co/JKnTpPpuKB > /dev/null
time curl -i -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:78.0) Gecko/20100101 Firefox/78.0' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://twitter.com/notifications' -H 'Connection: keep-alive' https://t.co/HH1DUkOUqn > /dev/null
time curl -i -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:78.0) Gecko/20100101 Firefox/78.0' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://twitter.com/notifications' -H 'Connection: keep-alive' https://t.co/Xbu7FLA92S > /dev/null
time curl -i -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:78.0) Gecko/20100101 Firefox/78.0' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://twitter.com/notifications' -H 'Connection: keep-alive' https://t.co/4RaZNAhF1N > /dev/null
time curl -i -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:78.0) Gecko/20100101 Firefox/78.0' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://twitter.com/notifications' -H 'Connection: keep-alive' https://t.co/VbEyWUi10m > /dev/null
mln-phonedude:~ mln$ ./tco-test-with-headers
curl -i -H User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:78.0) Gecko/20100101 Firefox/78.0 -H Accept: */* -H Accept-Language: en-US,en;q=0.5 --compressed -H Referer: https://twitter.com/notifications -H Connection: keep-alive https://t.co/SLUCgW6Pdo
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 217 100 217 0 0 610 0 --:--:-- --:--:-- --:--:-- 611
0.136u 0.034s 0:00.37 43.2% 0+0k 15+2io 4pf+0w
curl -i -H User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:78.0) Gecko/20100101 Firefox/78.0 -H Accept: */* -H Accept-Language: en-US,en;q=0.5 --compressed -H Referer: https://twitter.com/notifications -H Connection: keep-alive https://t.co/JKnTpPpuKB
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 232 100 232 0 0 705 0 --:--:-- --:--:-- --:--:-- 707
0.123u 0.020s 0:00.34 41.1% 0+0k 0+0io 0pf+0w
curl -i -H User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:78.0) Gecko/20100101 Firefox/78.0 -H Accept: */* -H Accept-Language: en-US,en;q=0.5 --compressed -H Referer: https://twitter.com/notifications -H Connection: keep-alive https://t.co/HH1DUkOUqn
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 190 100 190 0 0 567 0 --:--:-- --:--:-- --:--:-- 568
0.121u 0.021s 0:00.35 40.0% 0+0k 0+0io 0pf+0w
curl -i -H User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:78.0) Gecko/20100101 Firefox/78.0 -H Accept: */* -H Accept-Language: en-US,en;q=0.5 --compressed -H Referer: https://twitter.com/notifications -H Connection: keep-alive https://t.co/Xbu7FLA92S
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 195 100 195 0 0 66 0 0:00:02 0:00:02 --:--:-- 66
0.117u 0.019s 0:02.94 4.0% 0+0k 0+0io 0pf+0w
curl -i -H User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:78.0) Gecko/20100101 Firefox/78.0 -H Accept: */* -H Accept-Language: en-US,en;q=0.5 --compressed -H Referer: https://twitter.com/notifications -H Connection: keep-alive https://t.co/4RaZNAhF1N
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 189 100 189 0 0 67 0 0:00:02 0:00:02 --:--:-- 67
0.111u 0.021s 0:02.82 4.6% 0+0k 0+0io 0pf+0w
curl -i -H User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:78.0) Gecko/20100101 Firefox/78.0 -H Accept: */* -H Accept-Language: en-US,en;q=0.5 --compressed -H Referer: https://twitter.com/notifications -H Connection: keep-alive https://t.co/VbEyWUi10m
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 248 100 248 0 0 753 0 --:--:-- --:--:-- --:--:-- 753
0.119u 0.019s 0:00.34 35.2% 0+0k 0+0io 0pf+0w
mln-phonedude:~ mln$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment