]>
Commit | Line | Data |
---|---|---|
6bf4f823 | 1 | #!/bin/sh |
c10de904 | 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 | ||
0201179f HN |
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" | |
c10de904 | 16 | |
6bf4f823 | 17 | while read auth; do |
c10de904 | 18 | echo "GET $url HTTP/1.0" |
6bf4f823 | 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 |