]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test681: verify --no-remote-name
authorDaniel Stenberg <daniel@haxx.se>
Tue, 31 May 2022 11:24:02 +0000 (13:24 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 31 May 2022 14:09:53 +0000 (16:09 +0200)
Follow-up to 83ee5c428d960 (from #8931)

Closes #8942

tests/data/Makefile.inc
tests/data/test681 [new file with mode: 0644]

index 0d77dc826cf8c3cf9d89bd077854afd1c987b3f9..1a4d4eeeffb65f2cbebfd14a596f7870de97f176 100644 (file)
@@ -95,7 +95,7 @@ test643         test645 test646 test647 test648 test649 test650 test651 \
 test652 test653 test654 test655 test656 test658 test659 test660 test661 \
 test662 test663 test664 test665 test666 test667 test668 test669 \
 test670 test671 test672 test673 test674 test675 test676 test677 test678 \
-test679 test680 \
+test679 test680 test681 \
 \
 test700 test701 test702 test703 test704 test705 test706 test707 test708 \
 test709 test710 test711 test712 test713 test714 test715 test716 test717 \
diff --git a/tests/data/test681 b/tests/data/test681
new file mode 100644 (file)
index 0000000..d98393d
--- /dev/null
@@ -0,0 +1,51 @@
+<testcase>
+<info>
+<keywords>
+HTTP
+HTTP GET
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+<data nocheck="yes">
+HTTP/1.1 200 OK
+Date: Tue, 09 Nov 2010 14:49:00 GMT
+Content-Length: 6
+Connection: close
+Funny-head: yesyes
+
+-foo-
+</data>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+http
+</server>
+<name>
+--remote-name-all with --no-remote-name
+</name>
+<command option="no-include">
+--remote-name-all --no-remote-name --output-dir log http://%HOSTIP:%HTTPPORT/%TESTNUMBER
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+GET /%TESTNUMBER HTTP/1.1\r
+Host: %HOSTIP:%HTTPPORT\r
+User-Agent: curl/%VERSION\r
+Accept: */*\r
+\r
+</protocol>
+<stdout>
+-foo-
+</stdout>
+</verify>
+</testcase>