mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
test enforced chunked encoding with PUT on a local file
This commit is contained in:
parent
4ba1eb26fa
commit
10b5327b19
@ -30,7 +30,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \
|
||||
test193 test194 test195 test196 test197 test198 test515 test516 \
|
||||
test517 test518 test210 test211 test212 test220 test221 test222 \
|
||||
test223 test224 test206 test207 test208 test209 test213 test240 \
|
||||
test241 test242 test519 test214 test215 test216 test217
|
||||
test241 test242 test519 test214 test215 test216 test217 test218
|
||||
|
||||
# The following tests have been removed from the dist since they no longer
|
||||
# work. We need to fix the test suite's FTPS server first, then bring them
|
||||
|
51
tests/data/test218
Normal file
51
tests/data/test218
Normal file
@ -0,0 +1,51 @@
|
||||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.0 200 OK
|
||||
Server: test-server/fake
|
||||
Content-Type: text/html
|
||||
Content-Length: 6
|
||||
|
||||
blaha
|
||||
</data>
|
||||
</reply>
|
||||
|
||||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
<name>
|
||||
HTTP PUT from a file but enforce chunked transfer-encoding
|
||||
</name>
|
||||
<command>
|
||||
-T log/file218 -H "Transfer-Encoding: chunked" http://%HOSTIP:%HTTPPORT/218
|
||||
</command>
|
||||
<file name="log/file218">
|
||||
just some tiny teeny contents
|
||||
</file>
|
||||
</client>
|
||||
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<strip>
|
||||
^User-Agent:.*
|
||||
</strip>
|
||||
<protocol>
|
||||
PUT /218 HTTP/1.1
|
||||
Host: 127.0.0.1:%HTTPPORT
|
||||
Pragma: no-cache
|
||||
Accept: */*
|
||||
Transfer-Encoding: chunked
|
||||
Expect: 100-continue
|
||||
|
||||
1e
|
||||
just some tiny teeny contents
|
||||
|
||||
0
|
||||
|
||||
</protocol>
|
||||
</verify>
|
Loading…
Reference in New Issue
Block a user