1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-13 21:15:08 -05:00
curl/tests/data/test562
Daniel Stenberg 6b95c4e358 - 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!
2009-04-30 09:02:39 +00:00

54 lines
730 B
Plaintext

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