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
|
|
|
|
Location: 5990001
|
|
|
|
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
|
|
|
|
Location: 5990001
|
|
|
|
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>
|
|
|
|
lib599
|
|
|
|
</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>
|
2014-08-29 17:48:03 -04:00
|
|
|
http://%HOSTIP:%HTTPPORT/599 log/ip599
|
2012-03-23 18:42:37 -04:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
2014-08-29 17:48:03 -04:00
|
|
|
<file name="log/ip599">
|
|
|
|
CL: -1
|
|
|
|
</file>
|
2012-03-23 18:42:37 -04:00
|
|
|
</verify>
|
|
|
|
</testcase>
|