initial support for "uploading" to file:// URLs

This commit is contained in:
Daniel Stenberg 2004-05-25 21:47:29 +00:00
parent 765754d39d
commit fd802db39f
10 changed files with 177 additions and 29 deletions

View file

@ -24,7 +24,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \
test150 test151 test152 test153 test154 test155 test156 test157 \
test158 test159 test511 test160 test161 test162 test163 test164 \
test512 test165 test166 test167 test168 test169 test170 test171 \
test172
test172 test204 test205
# 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

32
tests/data/test204 Normal file
View file

@ -0,0 +1,32 @@
# no Server-side
# Client-side
<client>
<server>
none
</server>
<name>
"upload" with file://
</name>
<command>
file://localhost/%PWD/log/result204.txt -T log/upload204.txt
</command>
<file name="log/upload204.txt">
data
in
file
to
write
</file>
</client>
# Verify data after the test has been "shot"
<verify>
<file name="log/result204.txt">
data
in
file
to
write
</file>
</verify>

29
tests/data/test205 Normal file
View file

@ -0,0 +1,29 @@
# no Server-side
# Client-side
<client>
<server>
none
</server>
<name>
"upload" with file://
</name>
<command>
file://localhost/%PWD/log/nonexisting/result205.txt -T log/upload205.txt
</command>
<file name="log/upload205.txt">
data
in
file
to
write
</file>
</client>
# Verify data after the test has been "shot"
<verify>
# 23 => CURLE_WRITE_ERROR
<errorcode>
23
</errorcode>
</verify>