Commit 10b5327b authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

test enforced chunked encoding with PUT on a local file

parent 4ba1eb26
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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

tests/data/test218

0 → 100644
+51 −0
Original line number Diff line number Diff line
#
# 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>