2012-03-24 06:42:37 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP POST
|
2017-05-14 04:35:15 +08:00
|
|
|
chunked Transfer-Encoding
|
2012-03-24 06:42:37 +08:00
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
2014-02-01 07:52:08 +08:00
|
|
|
HTTP/1.1 302 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2014-02-01 07:52:08 +08:00
|
|
|
Server: test-server/fake
|
2021-03-13 00:38:26 +08:00
|
|
|
Location: %TESTNUMBER0001
|
2014-02-01 07:52:08 +08:00
|
|
|
Content-Length: 6
|
|
|
|
Connection: close
|
|
|
|
Content-Type: text/html
|
|
|
|
|
2012-03-24 06:42:37 +08:00
|
|
|
-foo-
|
|
|
|
</data>
|
|
|
|
<data1>
|
2014-02-01 07:52:08 +08:00
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2014-02-01 07:52:08 +08:00
|
|
|
Server: test-server/fake
|
|
|
|
Transfer-Encoding: chunked
|
|
|
|
Connection: close
|
|
|
|
Content-Type: text/html
|
|
|
|
|
2012-03-24 06:42:37 +08:00
|
|
|
32
|
|
|
|
this data is slightly larger than the first piece
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
</data1>
|
|
|
|
|
|
|
|
<datacheck>
|
2014-02-01 07:52:08 +08:00
|
|
|
HTTP/1.1 302 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2014-02-01 07:52:08 +08:00
|
|
|
Server: test-server/fake
|
2021-03-13 00:38:26 +08:00
|
|
|
Location: %TESTNUMBER0001
|
2014-02-01 07:52:08 +08:00
|
|
|
Content-Length: 6
|
|
|
|
Connection: close
|
|
|
|
Content-Type: text/html
|
|
|
|
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2014-02-01 07:52:08 +08:00
|
|
|
Server: test-server/fake
|
|
|
|
Transfer-Encoding: chunked
|
|
|
|
Connection: close
|
|
|
|
Content-Type: text/html
|
|
|
|
|
2012-03-24 06:42:37 +08:00
|
|
|
this data is slightly larger than the first piece
|
|
|
|
</datacheck>
|
|
|
|
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
# tool is what to use instead of 'curl'
|
|
|
|
<tool>
|
2021-03-13 00:38:26 +08:00
|
|
|
lib%TESTNUMBER
|
2012-03-24 06:42:37 +08:00
|
|
|
</tool>
|
|
|
|
|
|
|
|
# Bug 3510057 pointed out that when following a location to a larger chunked
|
|
|
|
# encoded page, the first size would still be used in the progress callback
|
|
|
|
<name>
|
|
|
|
HTTP GET with progress callback and redirects changing content sizes
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER log/ip%TESTNUMBER
|
2012-03-24 06:42:37 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
2021-03-13 00:38:26 +08:00
|
|
|
<file name="log/ip%TESTNUMBER">
|
2021-06-08 17:37:31 +08:00
|
|
|
CL -1
|
2014-08-30 05:48:03 +08:00
|
|
|
</file>
|
2012-03-24 06:42:37 +08:00
|
|
|
</verify>
|
|
|
|
</testcase>
|