Skip to content

Commit 4c74685

Browse files
authored
test
1 parent 81730df commit 4c74685

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

scripts/check_urls.sh

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,25 @@
77

88
set -x
99

10-
curl -sSI -o /dev/null -w '%{http_code}\n' \
11-
'https://wiki.mozilla.org/Abstract_Interpretation?action=raw'
10+
UA="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36"
11+
URL="https://wiki.mozilla.org/Abstract_Interpretation"
12+
PREFIX=$(hostname)_$(date +%s)
1213

13-
curl -sSI -o /dev/null -w '%{http_code}\n' \
14-
'https://wiki.mozilla.org/Abstract_Interpretation?printable=yes'
14+
dig +short "$URL" | tee "${PREFIX}_dns.txt"
1515

16-
curl -sSI -o /dev/null -w '%{http_code}\n' \
17-
https://repo1.maven.org/maven2/org/pytorch/executorch-android/maven-metadata.xml
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"
1821

19-
curl -sSI -o /dev/null -w '%{http_code}\n' \
20-
https://www.cadence.com/robots.txt
22+
curl -vvv -A "$UA" -I "$URL" 2>&1 | tee "${PREFIX}_head_http2.txt"
2123

22-
curl -sSI -o /dev/null -w '%{http_code}\n' \
23-
https://www.cadence.com/en_US/home/tools/silicon-solutions/compute-ip/hifi-dsps/hifi-4.html
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"
2429

2530
set -euo pipefail
2631

0 commit comments

Comments
 (0)