]> git.ipfire.org Git - thirdparty/squid.git/blob - test-suite/run_negotiate_test.sh
Correct execute and write permissions from some files.
[thirdparty/squid.git] / test-suite / run_negotiate_test.sh
1 #!/bin/sh
2 url=$1
3 proxy=${2:-localhost}
4 port=${3:-3128}
5
6 if [ $# -lt 1 ]; then
7 echo "Usage: $0 URL [server port]"
8 exit 1
9 fi
10
11 echo "blob # partial message"
12 echo "USER=... # Success"
13 echo "BAD.. # Login failure"
14 echo "ERR.. # Failure"
15
16 while read auth; do
17 echo "GET $url HTTP/1.0"
18 if [ -n "$auth" ]; then
19 echo "Proxy-Authorization: Negotiate $auth"
20 fi
21 echo "Proxy-Connection: keep-alive"
22 echo
23 done | tee -a /dev/fd/2 | nc localhost 3128