etlegacy-libs/curl/tests/data/test1514

64 lines
856 B
Text
Raw Normal View History

2016-09-16 04:29:17 +00:00
<testcase>
<info>
<keywords>
HTTP
HTTP POST
Content-Length
2019-12-20 11:07:02 +00:00
chunked Transfer-Encoding
2016-09-16 04:29:17 +00:00
</keywords>
</info>
# Server-side
<reply>
<data nocheck="yes">
2019-12-20 11:07:02 +00:00
HTTP/1.1 200 OK
2016-09-16 04:29:17 +00:00
Date: Sun, 19 Jan 2014 18:50:58 GMT
Server: test-server/fake swsclose
Connection: close
</data>
</reply>
# Client-side
<client>
<server>
http
</server>
<tool>
lib1514
</tool>
<name>
HTTP POST with read callback and unknown data size
</name>
<command>
http://%HOSTIP:%HTTPPORT/1514
</command>
</client>
# Verify data after the test has been "shot"
<verify>
# Content-Length header is not present
2019-12-20 11:07:02 +00:00
# Transfer-Encoding header is added automatically
2016-09-16 04:29:17 +00:00
<protocol>
POST /1514 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Accept: */*
2019-12-20 11:07:02 +00:00
Transfer-Encoding: chunked
2016-09-16 04:29:17 +00:00
Content-Type: application/x-www-form-urlencoded
Expect: 100-continue
2019-12-20 11:07:02 +00:00
1
d
1
u
1
m
1
m
1
y
0
2016-09-16 04:29:17 +00:00
</protocol>
</verify>
</testcase>