aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test1290
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-11-03 15:04:53 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-11-04 10:23:27 +0100
commit90abb74ff0e3134d8647722cee36b1815c14143d (patch)
tree79517d0e162bac1ec88e1b7c1240753d3372bc91 /tests/data/test1290
parent921bf1de527f287788fb0cdc7c1980e901fcb698 (diff)
curl: pass through [] in URLs instead of calling globbing error
Assisted-by: Per Lundberg Fixes #2044 Closes #2046 Closes #2048
Diffstat (limited to 'tests/data/test1290')
-rw-r--r--tests/data/test129048
1 files changed, 48 insertions, 0 deletions
diff --git a/tests/data/test1290 b/tests/data/test1290
new file mode 100644
index 000000000..e556303bf
--- /dev/null
+++ b/tests/data/test1290
@@ -0,0 +1,48 @@
+<testcase>
+<info>
+<keywords>
+HTTP
+HTTP GET
+globbing
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+<data>
+HTTP/1.1 200 OK
+Content-Length: 6
+Connection: close
+Content-Type: text/html
+
+-foo-
+</data>
+</reply>
+
+# Client-side
+<client>
+<server>
+http
+</server>
+<name>
+Verify URL globbing ignores []
+</name>
+<command>
+"http://%HOSTIP:%HTTPPORT/we/want/[]/page/1290"
+</command>
+</client>
+
+# Verify data after the test has been "shot"
+<verify>
+<strip>
+^User-Agent:.*
+</strip>
+<protocol>
+GET /we/want/[]/page/1290 HTTP/1.1
+Host: %HOSTIP:%HTTPPORT
+Accept: */*
+
+</protocol>
+</verify>
+</testcase>