Skip to content

Commit 5e2a35b

Browse files
authored
test
1 parent 4c74685 commit 5e2a35b

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

scripts/check_urls.sh

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,10 @@ set -x
99

1010
UA="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36"
1111
URL="https://wiki.mozilla.org/Abstract_Interpretation"
12-
PREFIX=$(hostname)_$(date +%s)
1312

14-
dig +short "$URL" | tee "${PREFIX}_dns.txt"
13+
curl -sS --http2 -o /dev/null -w 'HEAD→%{http_code}\n' -I -A "$UA" "$URL"
1514

16-
openssl s_client \
17-
-connect wiki.mozilla.org:443 \
18-
-servername wiki.mozilla.org \
19-
-alpn h2 < /dev/null \
20-
2>&1 | tee "${PREFIX}_tls.txt"
21-
22-
curl -vvv -A "$UA" -I "$URL" 2>&1 | tee "${PREFIX}_head_http2.txt"
23-
24-
curl -vvv --http1.1 -A "$UA" -I "$URL" 2>&1 | tee "${PREFIX}_head_http1.txt"
25-
26-
curl -vvv -A "$UA" --range 0-0 "$URL" 2>&1 | tee "${PREFIX}_range_http2.txt"
27-
28-
curl -vvv --http1.1 -A "$UA" --range 0-0 "$URL" 2>&1 | tee "${PREFIX}_range_http1.txt"
15+
curl -sS --http2 -o /dev/null -w 'RANGE→%{http_code}\n' --range 0-0 -A "$UA" "$URL"
2916

3017
set -euo pipefail
3118

0 commit comments

Comments
 (0)