mirror of
https://github.com/moparisthebest/curl
synced 2024-11-14 13:35:03 -05:00
e2b4df7b5e
This makes the tests easier to copy and relocate to other test numbers without having to update content. Closes #6738
59 lines
878 B
Plaintext
59 lines
878 B
Plaintext
<testcase>
|
|
|
|
<info>
|
|
<keywords>
|
|
HTTP
|
|
multi
|
|
FAILURE
|
|
resolve
|
|
</keywords>
|
|
</info>
|
|
|
|
<reply>
|
|
# Close the connection after the first request but don't tell the client to do
|
|
# so! When starting the second request it'll detect a dead connection and must
|
|
# not clean the DNS entries added manually.
|
|
<data1>
|
|
HTTP/1.1 200 OK
|
|
Date: Thu, 03 Feb 2014 17:04:00 GMT
|
|
Server: test-server/fake swsclose
|
|
Content-Type: text/html
|
|
Content-Length: 6
|
|
|
|
hello
|
|
</data1>
|
|
<data2>
|
|
HTTP/1.1 200 OK
|
|
Date: Thu, 03 Feb 2014 17:04:02 GMT
|
|
Server: test-server/fake swsclose
|
|
Connection: close
|
|
Content-Type: text/html
|
|
Content-Length: 6
|
|
|
|
hello
|
|
</data2>
|
|
</reply>
|
|
|
|
<client>
|
|
<server>
|
|
http
|
|
</server>
|
|
<tool>
|
|
lib1515
|
|
</tool>
|
|
<name>
|
|
caching of manual libcurl DNS entries after dead connection
|
|
</name>
|
|
<command>
|
|
/path/%TESTNUMBER %HOSTIP %HTTPPORT
|
|
</command>
|
|
</client>
|
|
|
|
<verify>
|
|
<errorcode>
|
|
0
|
|
</errorcode>
|
|
</verify>
|
|
|
|
</testcase>
|