1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-25 09:38:54 -05:00
curl/tests/data/test434
Daniel Stenberg e6b21d422e
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
2020-10-02 22:54:23 +02:00

47 lines
516 B
Plaintext

<testcase>
<info>
<keywords>
--config
</keywords>
</info>
#
<reply>
<data>
HTTP/1.1 200 OK
Content-Length: 6
Content-Type: text/1
-foo-
</data>
</reply>
#
<client>
<file name="log/config434" nonewline="yes">
url = %HOSTIP:%HTTPPORT/434
</file>
<server>
http
</server>
<name>
-K with a single line without newline
</name>
<command>
-K log/config434
</command>
</client>
#
<verify>
<protocol>
GET /434 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
</protocol>
</verify>
</testcase>