summaryrefslogtreecommitdiff
path: root/tests/data/test2061
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-10-02 13:45:24 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-10-02 22:54:23 +0200
commite6b21d422e631a7c0cc81abf956af179b3b4c5e8 (patch)
treed46708eb82dab354aabfcae27f1af1b1b1c9463a /tests/data/test2061
parent26a7d51c21bce00e332bbd10443594edb879a871 (diff)
downloadcurl-e6b21d422e631a7c0cc81abf956af179b3b4c5e8.tar.gz
runtests: provide curl's version string as %VERSION for tests
... so that we can check HTTP requests for User-Agent: curl/%VERSION Update 600+ test cases accordingly. Closes #6037
Diffstat (limited to 'tests/data/test2061')
-rw-r--r--tests/data/test20616
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/data/test2061 b/tests/data/test2061
index bee88e34a..6953423a3 100644
--- a/tests/data/test2061
+++ b/tests/data/test2061
@@ -65,18 +65,16 @@ http://%HOSTIP:%HTTPPORT/2061 -u testuser:testpass --digest
# Verify data after the test has been "shot"
<verify>
-<strip>
-^User-Agent:.*
-</strip>
<protocol>
GET /2061 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
+User-Agent: curl/%VERSION
Accept: */*
GET /2061 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Authorization: Digest username="testuser", realm="testrealm", nonce="1053604145", uri="/2061", response="9dc55255f1a2537b838311674b621d45346b862a81631bb20e4ce356ef25062d", algorithm=SHA-256
-User-Agent: curl/7.10.5 (i686-pc-linux-gnu) libcurl/7.10.5 OpenSSL/0.9.7a ipv6 zlib/1.1.3
+User-Agent: curl/%VERSION
Accept: */*
</protocol>