mirror of
https://github.com/curl/curl.git
synced 2026-04-13 00:31:41 +08:00
Test 696 and 556 share the same libtest code. Make sure to issue
the `GET` request to the correct runtime test number instead of using
the hard-wired "556".
It makes the `sws` test server read the response string from `test696`
`<data>` section, instead of reading it from `test556`. To avoid this
hidden interaction between test data.
AFAICS there is no other similar hard-coded string in reused libtests.
Ref: https://github.com/curl/curl/pull/19313#issuecomment-3477448933
Follow-up to be82a3605a #16003
Closes #19329
71 lines
973 B
Plaintext
71 lines
973 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
HTTP
|
|
HTTP GET
|
|
</keywords>
|
|
</info>
|
|
|
|
<reply>
|
|
<data nocheck="yes">
|
|
HTTP/1.1 200 OK swsclose
|
|
Server: test-server/fake
|
|
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
|
|
Content-Length: 6
|
|
Connection: close
|
|
|
|
-foo-
|
|
</data>
|
|
</reply>
|
|
|
|
#
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
http
|
|
</server>
|
|
<tool>
|
|
lib556
|
|
</tool>
|
|
<name>
|
|
CONNECT_ONLY and doing a second curl_easy_perform
|
|
</name>
|
|
<command>
|
|
http://%HOSTIP:%HTTPPORT
|
|
</command>
|
|
</client>
|
|
|
|
#
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<stdout>
|
|
HTTP/1.1 200 OK swsclose
|
|
Server: test-server/fake
|
|
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
|
|
Content-Length: 6
|
|
Connection: close
|
|
|
|
-foo-
|
|
HTTP/1.1 200 OK swsclose
|
|
Server: test-server/fake
|
|
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
|
|
Content-Length: 6
|
|
Connection: close
|
|
|
|
-foo-
|
|
</stdout>
|
|
<protocol crlf="yes">
|
|
GET /%TESTNUMBER HTTP/1.1
|
|
Host: ninja
|
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
|
Host: ninja
|
|
|
|
</protocol>
|
|
|
|
<errorcode>
|
|
0
|
|
</errorcode>
|
|
</verify>
|
|
</testcase>
|