File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 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+
828set -euo pipefail
929
1030status=0
You can’t perform that action at this time.
0 commit comments