Prevent uploading to a URL that has no file name part.

This commit is contained in:
Daniel Stenberg 2006-03-03 13:09:30 +00:00
parent aa50a00898
commit 7d68101f83
6 changed files with 82 additions and 3 deletions

44
tests/data/test524 Normal file
View file

@ -0,0 +1,44 @@
<info>
<keywords>
FTP
UPLOAD
</keywords>
</info>
#
# Server-side
<reply>
</reply>
#
# Client-side
<client>
<server>
ftp
</server>
<tool>
lib524
</tool>
<name>
FTP upload with target URL ending with slash
</name>
# first URL then proxy
<command>
ftp://%HOSTIP:%FTPPORT/path/to/
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<protocol>
USER anonymous
PASS curl_by_daniel@haxx.se
PWD
</protocol>
# 3 is CURLE_URL_MALFORMAT
<errorcode>
3
</errorcode>
</verify>