From a6315359d742bdf967ba3ee1db3e0b7e5a3956fe Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 26 Sep 2007 12:00:01 +0000 Subject: Max Katsev reported that when doing a libcurl FTP request with CURLOPT_NOBODY enabled but not CURLOPT_HEADER, libcurl wouldn't do TYPE before it does SIZE which makes it less useful. I walked over the code and made it do this properly, and added test case 542 to verify it. --- tests/data/test542 | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 tests/data/test542 (limited to 'tests/data/test542') diff --git a/tests/data/test542 b/tests/data/test542 new file mode 100644 index 000000000..5afe12470 --- /dev/null +++ b/tests/data/test542 @@ -0,0 +1,57 @@ + + + +FTP +PASV +RETR + + +# Server-side + + +data + to + see +that FTP +works + so does it? + + +Content-Length: 51 +Accept-ranges: bytes + + + +# Client-side + + +ftp + + +lib542 + + +FTP a file with NOBODY yes and HEADER no + + +ftp://%HOSTIP:%FTPPORT/542 + + + + +# 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 + + +USER anonymous +PASS ftp@example.com +PWD +TYPE I +SIZE 542 +REST 0 +QUIT + + + -- cgit v1.2.3