aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test1243
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2015-08-24 00:15:01 -0400
committerJay Satiro <raysatiro@yahoo.com>2016-02-23 03:01:07 -0500
commit186546f1c5ffa62526bd57deb5b9fd6e68da2a5e (patch)
tree064b4a45b134258416407201b82e53bd621c1f55 /tests/data/test1243
parent9dc3eaee2901875d87690de62b427fa7cf96fead (diff)
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
Diffstat (limited to 'tests/data/test1243')
-rw-r--r--tests/data/test124344
1 files changed, 44 insertions, 0 deletions
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 @@
+<testcase>
+<info>
+<keywords>
+TFTP
+TFTP WRQ
+</keywords>
+</info>
+
+#
+# Client-side
+<client>
+<server>
+tftp
+</server>
+ <name>
+TFTP send without TFTP options requests
+ </name>
+ <command>
+-T log/test1243.txt tftp://%HOSTIP:%TFTPPORT// --tftp-no-options --trace-ascii log/traceit
+</command>
+<file name="log/test1243.txt">
+a chunk of
+data
+sent
+ to server
+</file>
+</client>
+
+#
+# Verify pseudo protocol after the test has been "shot"
+<verify>
+<upload>
+a chunk of
+data
+sent
+ to server
+</upload>
+<protocol>
+opcode: 2
+mode: octet
+filename: /test1243.txt
+</protocol>
+</verify>
+</testcase>