diff options
author | Daniel Stenberg <daniel@haxx.se> | 2012-11-05 23:58:31 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-11-06 22:23:56 +0100 |
commit | 8d97bed80623e8dd2cb3988df30416a713383f1a (patch) | |
tree | 4d9ef518bb62deab559a16ea8d40d75919ba39cf /tests/data/test2027 | |
parent | 13ce9031cc3af2accc1be9e93cfc462efe513343 (diff) |
test 2027/2030: take duplicate Digest requests into account
With the reversion of ce8311c7e49eca and the new clear logic, this flaw
is present and we allow it.
Diffstat (limited to 'tests/data/test2027')
-rw-r--r-- | tests/data/test2027 | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/tests/data/test2027 b/tests/data/test2027 index cd2ead5a2..c84e24b03 100644 --- a/tests/data/test2027 +++ b/tests/data/test2027 @@ -9,6 +9,17 @@ HTTP Digest auth # Server-side <reply> +<!-- + + Explanation for the duplicate 400 requests: + + libcurl doesn't detect that a given Digest password is wrong already on the + first 401 response (as the data400 gives). libcurl will instead consider the + new response just as a duplicate and it sends another and detects the auth + problem on the second 401 response! + +--> + <!-- First request has Digest auth, wrong password --> <data100> HTTP/1.1 401 Need Digest auth
@@ -93,16 +104,6 @@ This is a bad password page! </data1400> <!-- Fifth request has Digest auth, right password --> -<data500> -HTTP/1.1 401 Need Digest auth (5)
-Server: Microsoft-IIS/5.0
-Content-Type: text/html; charset=iso-8859-1
-Content-Length: 27
-WWW-Authenticate: Digest realm="testrealm", nonce="8"
-
-This is not the real page! -</data500> - <data1500> HTTP/1.1 200 Things are fine in server land (2)
Server: Microsoft-IIS/5.0
@@ -151,6 +152,12 @@ Content-Type: text/html; charset=iso-8859-1 Content-Length: 29
WWW-Authenticate: Digest realm="testrealm", nonce="7"
+HTTP/1.1 401 Sorry wrong password (3)
+Server: Microsoft-IIS/5.0
+Content-Type: text/html; charset=iso-8859-1
+Content-Length: 29
+WWW-Authenticate: Digest realm="testrealm", nonce="7"
+
This is a bad password page! HTTP/1.1 200 Things are fine in server land (2)
Server: Microsoft-IIS/5.0
@@ -222,6 +229,11 @@ Authorization: Digest username="testuser", realm="testrealm", nonce="5", uri="/2 Host: %HOSTIP:%HTTPPORT
Accept: */*
+GET /20270400 HTTP/1.1
+Authorization: Digest username="testuser", realm="testrealm", nonce="5", uri="/20270400", response="f5906785511fb60a2af8b1cd53008ead"
+Host: %HOSTIP:%HTTPPORT
+Accept: */*
+
GET /20270500 HTTP/1.1
Authorization: Digest username="testuser", realm="testrealm", nonce="7", uri="/20270500", response="8ef4d935fd964a46c3965c0863b52cf1"
Host: %HOSTIP:%HTTPPORT
|