Skip to content

Commit 337f6bf

Browse files
authored
test
1 parent b30c70b commit 337f6bf

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

scripts/check_urls.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,26 @@
55
# This source code is licensed under the BSD-style license found in the
66
# LICENSE file in the root directory of this source tree.
77

8+
set -x
9+
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"
13+
14+
curl -sS -o /dev/null -w '%{http_code}\n' -I "$url"
15+
16+
curl -sS -o /dev/null -w '%{http_code}\n' -I -A "$user_agent" "$url"
17+
18+
curl -sS -o /dev/null -w '%{http_code}\n' --range 0-0 "$url"
19+
20+
curl -sS -o /dev/null -w '%{http_code}\n' --range 0-0 -A "$user_agent" "$url"
21+
22+
curl -sS -o /dev/null -w '%{http_code}\n' \
23+
--range 0-0 \
24+
-A "$user_agent" \
25+
-H "Accept: $accept_hdr" \
26+
"$url"
27+
828
set -euo pipefail
929

1030
status=0

0 commit comments

Comments
 (0)