]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test680: verify rejection of malformatted .netrc quoted password
authorDaniel Stenberg <daniel@haxx.se>
Tue, 31 May 2022 07:05:01 +0000 (09:05 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 31 May 2022 07:05:01 +0000 (09:05 +0200)
tests/data/Makefile.inc
tests/data/test680 [new file with mode: 0644]

index e3899168ead2bf234c1c3c83355fa7df064ecba7..0d77dc826cf8c3cf9d89bd077854afd1c987b3f9 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 \
+test679 test680 \
 \
 test700 test701 test702 test703 test704 test705 test706 test707 test708 \
 test709 test710 test711 test712 test713 test714 test715 test716 test717 \
diff --git a/tests/data/test680 b/tests/data/test680
new file mode 100644 (file)
index 0000000..2fdec6b
--- /dev/null
@@ -0,0 +1,37 @@
+<testcase>
+<info>
+<keywords>
+HTTP
+netrc
+</keywords>
+</info>
+#
+# Server-side
+<reply>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+none
+</server>
+ <name>
+netrc with quoted password but missing end quote
+ </name>
+ <command>
+--netrc --netrc-file log/netrc%TESTNUMBER http://user1@http.example/
+</command>
+<file name="log/netrc%TESTNUMBER" >
+machine %HOSTIP login user1 password "with spaces and \"\n\r\t\a
+</file>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<errorcode>
+26
+</errorcode>
+</verify>
+</testcase>