From 186546f1c5ffa62526bd57deb5b9fd6e68da2a5e Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Mon, 24 Aug 2015 00:15:01 -0400 Subject: TFTP: add option to suppress TFTP option requests (Part 2) - Add tests. - Add an example to CURLOPT_TFTP_NO_OPTIONS.3. - Add --tftp-no-options to expose CURLOPT_TFTP_NO_OPTIONS. Bug: https://github.com/curl/curl/issues/481 --- tests/data/Makefile.inc | 2 +- tests/data/test1242 | 43 +++++++++++++++++++++++++++++++++++++++++++ tests/data/test1243 | 44 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 tests/data/test1242 create mode 100644 tests/data/test1243 (limited to 'tests') diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index f3fa8cd9c..a13aac9b9 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -126,7 +126,7 @@ test1208 test1209 test1210 test1211 test1212 test1213 test1214 test1215 \ test1216 test1217 test1218 test1219 \ test1220 test1221 test1222 test1223 test1224 test1225 test1226 test1227 \ test1228 test1229 test1230 test1231 test1232 test1233 test1234 test1235 \ -test1236 test1237 test1238 test1239 test1240 test1241 \ +test1236 test1237 test1238 test1239 test1240 test1241 test1242 test1243 \ \ test1300 test1301 test1302 test1303 test1304 test1305 test1306 test1307 \ test1308 test1309 test1310 test1311 test1312 test1313 test1314 test1315 \ diff --git a/tests/data/test1242 b/tests/data/test1242 new file mode 100644 index 000000000..c8bc3d4ac --- /dev/null +++ b/tests/data/test1242 @@ -0,0 +1,43 @@ + + + +TFTP +TFTP RRQ + + + +# +# Server-side + + +a chunk of +data +returned + to client + + + +# +# Client-side + + +tftp + + +TFTP retrieve without TFTP options requests + + +tftp://%HOSTIP:%TFTPPORT//1242 --tftp-no-options --trace-ascii log/traceit + + + +# +# Verify pseudo protocol after the test has been "shot" + + +opcode: 1 +mode: octet +filename: /1242 + + + diff --git a/tests/data/test1243 b/tests/data/test1243 new file mode 100644 index 000000000..0303a5de4 --- /dev/null +++ b/tests/data/test1243 @@ -0,0 +1,44 @@ + + + +TFTP +TFTP WRQ + + + +# +# Client-side + + +tftp + + +TFTP send without TFTP options requests + + +-T log/test1243.txt tftp://%HOSTIP:%TFTPPORT// --tftp-no-options --trace-ascii log/traceit + + +a chunk of +data +sent + to server + + + +# +# Verify pseudo protocol after the test has been "shot" + + +a chunk of +data +sent + to server + + +opcode: 2 +mode: octet +filename: /test1243.txt + + + -- cgit v1.2.3