Skip to content

Commit e9f954c

Browse files
authored
Update check_urls.sh
1 parent 337f6bf commit e9f954c

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

scripts/check_urls.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,22 @@
77

88
set -x
99

10-
user_agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"
11-
accept_hdr="text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
12-
url="https://wiki.mozilla.org/Abstract_Interpretation"
10+
ua='Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36'
11+
url='https://wiki.mozilla.org/Abstract_Interpretation'
1312

14-
curl -sS -o /dev/null -w '%{http_code}\n' -I "$url"
13+
curl -s -o /dev/null -w '%{http_code}\n' --http1.1 -I "$url"
1514

16-
curl -sS -o /dev/null -w '%{http_code}\n' -I -A "$user_agent" "$url"
15+
curl -s -o /dev/null -w '%{http_code}\n' --http1.1 --range 0-0 -A "$ua" "$url"
1716

18-
curl -sS -o /dev/null -w '%{http_code}\n' --range 0-0 "$url"
17+
curl -s -o /dev/null -w '%{http_code}\n' --http1.1 --range 0-0 -A "$ua" --compressed "$url"
1918

20-
curl -sS -o /dev/null -w '%{http_code}\n' --range 0-0 -A "$user_agent" "$url"
19+
curl -s -o /dev/null -w '%{http_code}\n' --http1.1 --range 0-0 -A "$ua" \
20+
-H 'Accept-Language: en-US,en;q=0.9' \
21+
"$url"
2122

22-
curl -sS -o /dev/null -w '%{http_code}\n' \
23-
--range 0-0 \
24-
-A "$user_agent" \
25-
-H "Accept: $accept_hdr" \
23+
curl -s -o /dev/null -w '%{http_code}\n' --http1.1 --range 0-0 -A "$ua" \
24+
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \
25+
-H 'Referer: https://wiki.mozilla.org/' \
2626
"$url"
2727

2828
set -euo pipefail

0 commit comments

Comments
 (0)