2020-09-09 23:05:49 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
followlocation
|
|
|
|
chunked Transfer-Encoding
|
|
|
|
--write-out
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data nocheck="yes">
|
|
|
|
HTTP/1.1 302 OK
|
|
|
|
Date: Sun, 13 Sep 2020 15:00 GMT
|
|
|
|
Content-Length: 8
|
|
|
|
Connection: close
|
|
|
|
Content-Type: text/plain
|
2021-03-13 00:38:26 +08:00
|
|
|
Location: ./%TESTNUMBER0001
|
2020-09-09 23:05:49 +08:00
|
|
|
|
|
|
|
monster
|
|
|
|
</data>
|
|
|
|
<data1 nocheck="yes">
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Date: Sun, 13 Sep 2020 15:00 GMT
|
|
|
|
Transfer-Encoding: chunked
|
|
|
|
Connection: close
|
|
|
|
Content-Type: text/plain; charset=us-ascii
|
|
|
|
|
|
|
|
0007
|
|
|
|
bigger
|
|
|
|
0008
|
|
|
|
monster
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
</data1>
|
|
|
|
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
2023-10-04 17:35:54 +08:00
|
|
|
<name>
|
2020-09-09 23:05:49 +08:00
|
|
|
HTTP GET -w num_headers with redirected fetch (2 connects)
|
2023-10-04 17:35:54 +08:00
|
|
|
</name>
|
|
|
|
<command>
|
2024-10-01 06:41:43 +08:00
|
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w "%{num_headers}\n" -L -o%DEV_NULL
|
2020-09-09 23:05:49 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
2020-09-09 23:05:49 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2020-09-09 23:05:49 +08:00
|
|
|
Accept: */*
|
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER0001 HTTP/1.1
|
2020-09-09 23:05:49 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2020-09-09 23:05:49 +08:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
|
2020-09-15 20:35:22 +08:00
|
|
|
<stdout mode="text">
|
2020-09-09 23:05:49 +08:00
|
|
|
4
|
|
|
|
</stdout>
|
|
|
|
|
|
|
|
</verify>
|
|
|
|
</testcase>
|