2012-03-23 18:42:37 -04:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP POST
|
2017-05-13 16:35:15 -04:00
|
|
|
chunked Transfer-Encoding
|
2012-03-23 18:42:37 -04:00
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
2014-01-31 18:52:08 -05:00
|
|
|
HTTP/1.1 302 OK
|
2020-02-28 09:00:03 -05:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2014-01-31 18:52:08 -05:00
|
|
|
Server: test-server/fake
|
2021-03-12 11:38:26 -05:00
|
|
|
Location: %TESTNUMBER0001
|
2014-01-31 18:52:08 -05:00
|
|
|
Content-Length: 6
|
|
|
|
Connection: close
|
|
|
|
Content-Type: text/html
|
|
|
|
|
2012-03-23 18:42:37 -04:00
|
|
|
-foo-
|
|
|
|
</data>
|
|
|
|
<data1>
|
2014-01-31 18:52:08 -05:00
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 09:00:03 -05:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2014-01-31 18:52:08 -05:00
|
|
|
Server: test-server/fake
|
|
|
|
Transfer-Encoding: chunked
|
|
|
|
Connection: close
|
|
|
|
Content-Type: text/html
|
|
|
|
|
2012-03-23 18:42:37 -04:00
|
|
|
32
|
|
|
|
this data is slightly larger than the first piece
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
</data1>
|
|
|
|
|
|
|
|
<datacheck>
|
2014-01-31 18:52:08 -05:00
|
|
|
HTTP/1.1 302 OK
|
2020-02-28 09:00:03 -05:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2014-01-31 18:52:08 -05:00
|
|
|
Server: test-server/fake
|
2021-03-12 11:38:26 -05:00
|
|
|
Location: %TESTNUMBER0001
|
2014-01-31 18:52:08 -05:00
|
|
|
Content-Length: 6
|
|
|
|
Connection: close
|
|
|
|
Content-Type: text/html
|
|
|
|
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 09:00:03 -05:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2014-01-31 18:52:08 -05:00
|
|
|
Server: test-server/fake
|
|
|
|
Transfer-Encoding: chunked
|
|
|
|
Connection: close
|
|
|
|
Content-Type: text/html
|
|
|
|
|
2012-03-23 18:42:37 -04: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-12 11:38:26 -05:00
|
|
|
lib%TESTNUMBER
|
2012-03-23 18:42:37 -04: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-12 11:38:26 -05:00
|
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER log/ip%TESTNUMBER
|
2012-03-23 18:42:37 -04:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
2021-03-12 11:38:26 -05:00
|
|
|
<file name="log/ip%TESTNUMBER">
|
2021-06-08 05:37:31 -04:00
|
|
|
CL -1
|
2014-08-29 17:48:03 -04:00
|
|
|
</file>
|
2012-03-23 18:42:37 -04:00
|
|
|
</verify>
|
|
|
|
</testcase>
|