2013-08-15 19:05:25 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
2014-07-12 07:49:35 +08:00
|
|
|
globbing
|
2013-08-15 19:05:25 +08:00
|
|
|
{} list
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data1>
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Funny-head: yesyes
|
|
|
|
Content-Length: 15
|
|
|
|
|
|
|
|
the number one
|
|
|
|
</data1>
|
|
|
|
<data2>
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Funny-head: yesyes
|
|
|
|
Content-Length: 16
|
|
|
|
|
|
|
|
two is nice too
|
|
|
|
</data2>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
multiple requests using {}{} in the URL
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
"%HOSTIP:%HTTPPORT/{%TESTNUMBER,%TESTNUMBER}{0001,0002}"
|
2013-08-15 19:05:25 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER0001 HTTP/1.1
|
2013-08-15 19:05:25 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2013-08-15 19:05:25 +08:00
|
|
|
Accept: */*
|
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER0002 HTTP/1.1
|
2013-08-15 19:05:25 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2013-08-15 19:05:25 +08:00
|
|
|
Accept: */*
|
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER0001 HTTP/1.1
|
2013-08-15 19:05:25 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2013-08-15 19:05:25 +08:00
|
|
|
Accept: */*
|
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER0002 HTTP/1.1
|
2013-08-15 19:05:25 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2013-08-15 19:05:25 +08:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
<stdout>
|
2021-03-13 00:38:26 +08:00
|
|
|
--_curl_--%HOSTIP:%HTTPPORT/%TESTNUMBER0001
|
2013-08-15 19:05:25 +08:00
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Funny-head: yesyes
|
|
|
|
Content-Length: 15
|
|
|
|
|
|
|
|
the number one
|
2021-03-13 00:38:26 +08:00
|
|
|
--_curl_--%HOSTIP:%HTTPPORT/%TESTNUMBER0002
|
2013-08-15 19:05:25 +08:00
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Funny-head: yesyes
|
|
|
|
Content-Length: 16
|
|
|
|
|
|
|
|
two is nice too
|
2021-03-13 00:38:26 +08:00
|
|
|
--_curl_--%HOSTIP:%HTTPPORT/%TESTNUMBER0001
|
2013-08-15 19:05:25 +08:00
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Funny-head: yesyes
|
|
|
|
Content-Length: 15
|
|
|
|
|
|
|
|
the number one
|
2021-03-13 00:38:26 +08:00
|
|
|
--_curl_--%HOSTIP:%HTTPPORT/%TESTNUMBER0002
|
2013-08-15 19:05:25 +08:00
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Funny-head: yesyes
|
|
|
|
Content-Length: 16
|
|
|
|
|
|
|
|
two is nice too
|
|
|
|
</stdout>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|