]> git.ipfire.org Git - thirdparty/squid.git/blob - test-suite/run_negotiate_test.sh
Extended ntlm/negotiate_test to support helper local thinking time/delays
[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 "SLEEP=.. # Delay. Can be combined with the others by using ;"
13 echo "USER=... # Success"
14 echo "BAD.. # Helper failure"
15 echo "ERR.. # Login Failure"
16
17 while read auth; do
18 echo "GET $url HTTP/1.0"
19 if [ -n "$auth" ]; then
20 echo "Proxy-Authorization: Negotiate $auth"
21 fi
22 echo "Proxy-Connection: keep-alive"
23 echo
24 done | tee -a /dev/fd/2 | nc localhost 3128