From: Daniel Stenberg Date: Thu, 29 Aug 2024 10:32:00 +0000 (+0200) Subject: test476: test ASCII FTP upload where file already uses CRLF X-Git-Tag: curl-8_10_0~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55672d0aa337c6aec58b0a9d23eb91369c0d6156;p=thirdparty%2Fcurl.git test476: test ASCII FTP upload where file already uses CRLF Closes #14717 --- diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index d572c6bf0f..3a893e8ead 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -77,7 +77,7 @@ test435 test436 test437 test438 test439 test440 test441 test442 test443 \ test444 test445 test446 test447 test448 test449 test450 test451 test452 \ test453 test454 test455 test456 test457 test458 test459 test460 test461 \ test462 test463 test467 test468 test469 test470 test471 test472 test473 \ -test474 test475 \ +test474 test475 test476 \ \ test490 test491 test492 test493 test494 test495 test496 test497 test498 \ test499 test500 test501 test502 test503 test504 test505 test506 test507 \ diff --git a/tests/data/test476 b/tests/data/test476 new file mode 100644 index 0000000000..00aed7c44c --- /dev/null +++ b/tests/data/test476 @@ -0,0 +1,45 @@ + + + +FTP +EPSV +STOR +TYPE A + + + +# Client-side + + +ftp + + +FTP PASV upload ASCII file already using CRLF + + +%repeat[1750 x a line of text used for verifying this !%0a]% + + +"ftp://%HOSTIP:%FTPPORT/%TESTNUMBER;type=a" -T %LOGDIR/test%TESTNUMBER.txt + + + +# Verify data after the test has been "shot" + + +QUIT + + +%repeat[1750 x a line of text used for verifying this !%0a]% + + +USER anonymous +PASS ftp@example.com +PWD +EPSV +TYPE A +STOR %TESTNUMBER +QUIT + + +