1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48:49 -05:00

test enforced chunked encoding with PUT on a local file

This commit is contained in:
Daniel Stenberg 2004-12-21 20:19:05 +00:00
parent 4ba1eb26fa
commit 10b5327b19
2 changed files with 52 additions and 1 deletions

View File

@ -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
View 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>