mirror of
https://github.com/curl/curl.git
synced 2026-07-30 19:28:03 +03:00
- I was going to fix issue #59 in KNOWN_BUGS
If the CURLOPT_PORT option is used on an FTP URL like "ftp://example.com/file;type=A" the ";type=A" is stripped off. I added test case 562 to verify, only to find out that I couldn't repeat this bug so I hereby consider it not a bug anymore!
This commit is contained in:
parent
22e2ecb003
commit
6b95c4e358
5 changed files with 140 additions and 4 deletions
53
tests/data/test562
Normal file
53
tests/data/test562
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
FTP
|
||||
PASV
|
||||
RETR
|
||||
</keywords>
|
||||
</info>
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
silly data
|
||||
over FTP
|
||||
</data>
|
||||
</reply>
|
||||
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
ftp
|
||||
</server>
|
||||
<tool>
|
||||
lib562
|
||||
</tool>
|
||||
<name>
|
||||
FTP a type=A URL and CURLOPT_PORT set
|
||||
</name>
|
||||
|
||||
# note that we need quotes around the URL below to make sure the shell doesn't
|
||||
# treat the semicolon as a separator!
|
||||
<command>
|
||||
'ftp://%HOSTIP:23456/562;type=A' %FTPPORT
|
||||
</command>
|
||||
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
#
|
||||
# There's no MTDM in the protocol here since this code doesn't ask for the
|
||||
# time/date of the file
|
||||
<verify>
|
||||
<protocol>
|
||||
USER anonymous
|
||||
PASS ftp@example.com
|
||||
PWD
|
||||
EPSV
|
||||
TYPE A
|
||||
SIZE 562
|
||||
RETR 562
|
||||
QUIT
|
||||
</protocol>
|
||||
</verify>
|
||||
</testcase>
|
||||
Loading…
Add table
Add a link
Reference in a new issue