aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test1280
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-11-15 08:22:54 +0100
committerDaniel Stenberg <daniel@haxx.se>2016-11-15 08:22:54 +0100
commit8c630ef059f7e8acd4eef97c85793c80b75f145d (patch)
tree7babd2deca04552b223536ea0395296da151097c /tests/data/test1280
parentf82bbe01c8835b8788c69f05362bb789766473cd (diff)
glob: fix [a-c] globbing regression
Brought in ee4f76606cf Added test case 1280 to verify Reported-by: Dave Reisner Bug: https://github.com/curl/curl/commit/ee4f76606cfa4ee068bf28edd37c8dae7e8db317#commitcomment-19823146
Diffstat (limited to 'tests/data/test1280')
-rw-r--r--tests/data/test128058
1 files changed, 58 insertions, 0 deletions
diff --git a/tests/data/test1280 b/tests/data/test1280
new file mode 100644
index 000000000..15c1e2fd1
--- /dev/null
+++ b/tests/data/test1280
@@ -0,0 +1,58 @@
+<testcase>
+<info>
+<keywords>
+globbing
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+<data>
+HTTP/1.1 200 OK
+Date: Thu, 09 Nov 2010 14:49:00 GMT
+Content-Length: 6
+Connection: close
+
+bytes
+</data>
+</reply>
+
+# Client-side
+<client>
+<server>
+http
+</server>
+ <name>
+simple [a-d] globbing
+ </name>
+ <command>
+http://%HOSTIP:%HTTPPORT/[a-d]/1280
+</command>
+</client>
+
+# Verify data after the test has been "shot"
+<verify>
+<strip>
+^User-Agent:.*
+</strip>
+<protocol>
+GET /a/1280 HTTP/1.1
+Host: %HOSTIP:%HTTPPORT
+Accept: */*
+
+GET /b/1280 HTTP/1.1
+Host: %HOSTIP:%HTTPPORT
+Accept: */*
+
+GET /c/1280 HTTP/1.1
+Host: %HOSTIP:%HTTPPORT
+Accept: */*
+
+GET /d/1280 HTTP/1.1
+Host: %HOSTIP:%HTTPPORT
+Accept: */*
+
+</protocol>
+</verify>
+</testcase>