]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - test-suite/run_negotiate_test.sh
Source Format Enforcement (#532)
[thirdparty/squid.git] / test-suite / run_negotiate_test.sh
old mode 100644 (file)
new mode 100755 (executable)
index 1867084..0eb24c0
@@ -1,6 +1,29 @@
 #!/bin/sh
+#
+## Copyright (C) 1996-2020 The Squid Software Foundation and contributors
+##
+## Squid software is distributed under GPLv2+ license and includes
+## contributions from numerous individuals and organizations.
+## Please see the COPYING and CONTRIBUTORS files for details.
+##
+
+url=$1
+proxy=${2:-localhost}
+port=${3:-3128}
+
+if [ $# -lt 1 ]; then
+    echo "Usage: $0 URL [server port]"
+    exit 1
+fi
+
+echo   "blob           # partial message"
+echo   "SLEEP=..       # Delay. Can be combined with the others by using ;"
+echo   "USER=...       # Success"
+echo   "BAD..          # Helper failure"
+echo   "ERR..          # Login Failure"
+
 while read auth; do
-       echo "HEAD http://www.squid-cache.org/ HTTP/1.0"
+       echo "GET $url HTTP/1.0"
        if [ -n "$auth" ]; then
                echo "Proxy-Authorization: Negotiate $auth"
        fi