File: framed-proxy%2Bbasicauth.sh

package info (click to toggle)
netclient 0.91-10
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,096 kB
  • ctags: 1,539
  • sloc: ml: 8,808; sh: 527; makefile: 203
file content (18 lines) | stat: -rw-r--r-- 567 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
. helpers.sh

start_test_server \
  -line 1 -file data/require-proxyauth \
  -line 8 -expect "proxy-authorization: Basic dGVzdHVzZXI6dGVzdHBhc3N3b3Jk
" \
  -line 9 -file data/require-basicauth \
  -line 13 -expect "proxy-authorization: Basic dGVzdHVzZXI6dGVzdHBhc3N3b3Jk
" \
  -line 14 -expect "Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3N3b3Jk
" \
  -line 15 -file data/framed
trap "stop_test_server" EXIT
request \
  -proxy -proxy-user testuser -proxy-password testpassword \
  -realm testrealm -user testuser -password testpassword -basic-auth \
  -get / \
  -run