# Server-side
<reply>
+<servercmd>
+connection-monitor
+auth_required
+</servercmd>
+
# this is returned first since we get no proxy-auth
-<data>
+<connect>
HTTP/1.1 407 Authorization Required to proxy me my dear\r
Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"\r
+Content-Length: 33\r
\r
And you should ignore this data.
-</data>
+</connect>
# this is returned when we get a GET!
<data2>
</data2>
# then this is returned when we get proxy-auth
-<data1000>
+<connect1000>
HTTP/1.1 200 OK swsbounce\r
Server: no
\r
-Nice proxy auth sir!
-</data1000>
+</connect1000>
<datacheck>
HTTP/1.1 407 Authorization Required to proxy me my dear\r
Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"\r
+Content-Length: 33\r
\r
HTTP/1.1 200 OK swsbounce\r
Server: no
http
</server>
<features>
+!SSPI
crypto
</features>
<name>
HTTP proxy CONNECT auth Digest
</name>
<command>
-http://test.remote.haxx.se:206/path/2060002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-digest --proxytunnel
+http://test.remote.haxx.se.206:8990/path/2060002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-digest --proxytunnel
</command>
</client>
^User-Agent: curl/.*
</strip>
<protocol>
-CONNECT test.remote.haxx.se:206 HTTP/1.1\r
-Host: test.remote.haxx.se:206\r
+CONNECT test.remote.haxx.se.206:8990 HTTP/1.1\r
+Host: test.remote.haxx.se.206:8990\r
Proxy-Connection: Keep-Alive\r
\r
-CONNECT test.remote.haxx.se:206 HTTP/1.1\r
-Host: test.remote.haxx.se:206\r
-Proxy-Authorization: Digest username="silly", realm="weirdorealm", nonce="12345", uri="test.remote.haxx.se:206", response="676e0836f3e1c5b31bf29770ef9d8224"\r
+CONNECT test.remote.haxx.se.206:8990 HTTP/1.1\r
+Host: test.remote.haxx.se.206:8990\r
+Proxy-Authorization: Digest username="silly", realm="weirdorealm", nonce="12345", uri="test.remote.haxx.se.206:8990", response="003e36decb4dbf6366b3ecb9b87c24ec"\r
Proxy-Connection: Keep-Alive\r
\r
GET /path/2060002 HTTP/1.1\r
User-Agent: curl/7.12.3-CVS (i686-pc-linux-gnu) libcurl/7.12.3-CVS OpenSSL/0.9.6b zlib/1.1.4\r
-Host: test.remote.haxx.se:206\r
+Host: test.remote.haxx.se.206:8990\r
Accept: */*\r
\r
+[DISCONNECT]
</protocol>
</verify>
</testcase>