diff options
author | Colin Hogben <curl@pythontech.co.uk> | 2012-01-18 22:19:57 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-01-18 22:20:33 +0100 |
commit | 5d70a61b9460498558de2f16038a3687811b1622 (patch) | |
tree | f08d4a8834c3a3cf204262992534eb7a3417270e /tests/data/test1327 | |
parent | 51c485342b3be871c8998affc62901a27ffd3d92 (diff) | |
download | curl-5d70a61b9460498558de2f16038a3687811b1622.tar.gz |
Add two tests for telnet: URLs
Add simple telnet tests which (ab)use the http server.
The second test checks for an input file handling bug.
Diffstat (limited to 'tests/data/test1327')
-rw-r--r-- | tests/data/test1327 | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/tests/data/test1327 b/tests/data/test1327 new file mode 100644 index 000000000..a6e3d4fdc --- /dev/null +++ b/tests/data/test1327 @@ -0,0 +1,47 @@ +<testcase> +<info> +<keywords> +TELNET +UPLOAD +</keywords> +</info> + +# +# Server-side +<reply> +</reply> + +# +# Client-side +<client> +<server> +http +</server> +<features> +telnet +</features> + <name> +TELNET check of upload with stdout redirected + </name> +<stdin> +GET /ignore/for/1327 HTTP/1.0
+
+</stdin> +<file name="log/1327.txt"> +GET /we/want/1327 HTTP/1.0
+
+</file> + <command option="no-output"> +telnet://%HOSTIP:%HTTPPORT -T log/1327.txt +</command> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<protocol> +GET /we/want/1327 HTTP/1.0
+
+</protocol> +</verify> +</testcase> |