113498266Sopenharmony_ci<testcase>
213498266Sopenharmony_ci<info>
313498266Sopenharmony_ci<keywords>
413498266Sopenharmony_ciHTTP
513498266Sopenharmony_ciHTTP GET
613498266Sopenharmony_ciHTTP proxy
713498266Sopenharmony_ciHTTP proxy Basic auth
813498266Sopenharmony_ciHTTP Digest auth
913498266Sopenharmony_ci</keywords>
1013498266Sopenharmony_ci</info>
1113498266Sopenharmony_ci
1213498266Sopenharmony_ci# Server-side
1313498266Sopenharmony_ci<reply>
1413498266Sopenharmony_ci<data>
1513498266Sopenharmony_ciHTTP/1.1 401 Authorization Required swsclose
1613498266Sopenharmony_ciWWW-Authenticate: Digest realm="weirdorealm", nonce="12345"
1713498266Sopenharmony_ci
1813498266Sopenharmony_ci</data>
1913498266Sopenharmony_ci
2013498266Sopenharmony_ci<data1000>
2113498266Sopenharmony_ciHTTP/1.1 200 OK swsclose
2213498266Sopenharmony_ciServer: no
2313498266Sopenharmony_ciContent-Length: 15
2413498266Sopenharmony_ci
2513498266Sopenharmony_ciNice auth sir!
2613498266Sopenharmony_ci</data1000>
2713498266Sopenharmony_ci
2813498266Sopenharmony_ci<datacheck>
2913498266Sopenharmony_ciHTTP/1.1 401 Authorization Required swsclose
3013498266Sopenharmony_ciWWW-Authenticate: Digest realm="weirdorealm", nonce="12345"
3113498266Sopenharmony_ci
3213498266Sopenharmony_ciHTTP/1.1 200 OK swsclose
3313498266Sopenharmony_ciServer: no
3413498266Sopenharmony_ciContent-Length: 15
3513498266Sopenharmony_ci
3613498266Sopenharmony_ciNice auth sir!
3713498266Sopenharmony_ci</datacheck>
3813498266Sopenharmony_ci</reply>
3913498266Sopenharmony_ci
4013498266Sopenharmony_ci# Client-side
4113498266Sopenharmony_ci<client>
4213498266Sopenharmony_ci<server>
4313498266Sopenharmony_cihttp
4413498266Sopenharmony_ci</server>
4513498266Sopenharmony_ci<features>
4613498266Sopenharmony_ci!SSPI
4713498266Sopenharmony_cicrypto
4813498266Sopenharmony_ciproxy
4913498266Sopenharmony_ci</features>
5013498266Sopenharmony_ci<name>
5113498266Sopenharmony_ciHTTP with proxy-requiring-Basic to site-requiring-Digest
5213498266Sopenharmony_ci</name>
5313498266Sopenharmony_ci<command>
5413498266Sopenharmony_cihttp://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --digest --user digest:alot
5513498266Sopenharmony_ci</command>
5613498266Sopenharmony_ci</client>
5713498266Sopenharmony_ci
5813498266Sopenharmony_ci# Verify data after the test has been "shot"
5913498266Sopenharmony_ci<verify>
6013498266Sopenharmony_ci<protocol>
6113498266Sopenharmony_ciGET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1
6213498266Sopenharmony_ciHost: data.from.server.requiring.digest.hohoho.com
6313498266Sopenharmony_ciProxy-Authorization: Basic Zm9vOmJhcg==
6413498266Sopenharmony_ciUser-Agent: curl/%VERSION
6513498266Sopenharmony_ciAccept: */*
6613498266Sopenharmony_ciProxy-Connection: Keep-Alive
6713498266Sopenharmony_ci
6813498266Sopenharmony_ciGET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1
6913498266Sopenharmony_ciHost: data.from.server.requiring.digest.hohoho.com
7013498266Sopenharmony_ciProxy-Authorization: Basic Zm9vOmJhcg==
7113498266Sopenharmony_ciAuthorization: Digest username="digest", realm="weirdorealm", nonce="12345", uri="/%TESTNUMBER", response="13c7c02a252cbe1c46d8669898a3be26"
7213498266Sopenharmony_ciUser-Agent: curl/%VERSION
7313498266Sopenharmony_ciAccept: */*
7413498266Sopenharmony_ciProxy-Connection: Keep-Alive
7513498266Sopenharmony_ci
7613498266Sopenharmony_ci</protocol>
7713498266Sopenharmony_ci</verify>
7813498266Sopenharmony_ci</testcase>
79