etlegacy-libs/curl/tests/data/test206

110 lines
2.1 KiB
Text
Raw Normal View History

2012-06-01 15:23:17 +00:00
<testcase>
<info>
<keywords>
HTTP
HTTP GET
HTTP CONNECT
HTTP proxy
proxytunnel
HTTP proxy Digest auth
</keywords>
</info>
# Server-side
<reply>
2016-09-16 04:29:17 +00:00
<servercmd>
connection-monitor
auth_required
</servercmd>
2012-06-01 15:23:17 +00:00
# this is returned first since we get no proxy-auth
2016-09-16 04:29:17 +00:00
<connect>
2012-06-01 15:23:17 +00:00
HTTP/1.1 407 Authorization Required to proxy me my dear
Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"
2016-09-16 04:29:17 +00:00
Content-Length: 33
2012-06-01 15:23:17 +00:00
And you should ignore this data.
2016-09-16 04:29:17 +00:00
</connect>
2012-06-01 15:23:17 +00:00
# this is returned when we get a GET!
<data2>
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Content-Length: 7
Connection: close
Content-Type: text/html
Funny-head: yesyes
daniel
</data2>
# then this is returned when we get proxy-auth
2016-09-16 04:29:17 +00:00
<connect1000>
2012-06-01 15:23:17 +00:00
HTTP/1.1 200 OK swsbounce
Server: no
2016-09-16 04:29:17 +00:00
</connect1000>
2012-06-01 15:23:17 +00:00
<datacheck>
HTTP/1.1 407 Authorization Required to proxy me my dear
Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"
2016-09-16 04:29:17 +00:00
Content-Length: 33
2012-06-01 15:23:17 +00:00
HTTP/1.1 200 OK swsbounce
Server: no
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Content-Length: 7
Connection: close
Content-Type: text/html
Funny-head: yesyes
daniel
</datacheck>
</reply>
# Client-side
<client>
<server>
http
</server>
<features>
2016-09-16 04:29:17 +00:00
!SSPI
2012-06-01 15:23:17 +00:00
crypto
2019-12-20 11:07:02 +00:00
proxy
2012-06-01 15:23:17 +00:00
</features>
<name>
HTTP proxy CONNECT auth Digest
</name>
<command>
2016-09-16 04:29:17 +00:00
http://test.remote.haxx.se.206:8990/path/2060002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-digest --proxytunnel
2012-06-01 15:23:17 +00:00
</command>
</client>
# Verify data after the test has been "shot"
<verify>
<strip>
^User-Agent: curl/.*
</strip>
<protocol>
2016-09-16 04:29:17 +00:00
CONNECT test.remote.haxx.se.206:8990 HTTP/1.1
Host: test.remote.haxx.se.206:8990
2012-06-01 15:23:17 +00:00
Proxy-Connection: Keep-Alive
2016-09-16 04:29:17 +00:00
CONNECT test.remote.haxx.se.206:8990 HTTP/1.1
Host: test.remote.haxx.se.206:8990
Proxy-Authorization: Digest username="silly", realm="weirdorealm", nonce="12345", uri="test.remote.haxx.se.206:8990", response="003e36decb4dbf6366b3ecb9b87c24ec"
2012-06-01 15:23:17 +00:00
Proxy-Connection: Keep-Alive
GET /path/2060002 HTTP/1.1
User-Agent: curl/7.12.3-CVS (i686-pc-linux-gnu) libcurl/7.12.3-CVS OpenSSL/0.9.6b zlib/1.1.4
2016-09-16 04:29:17 +00:00
Host: test.remote.haxx.se.206:8990
2012-06-01 15:23:17 +00:00
Accept: */*
2016-09-16 04:29:17 +00:00
[DISCONNECT]
2012-06-01 15:23:17 +00:00
</protocol>
</verify>
</testcase>