summaryrefslogtreecommitdiff
path: root/tests/data/test1176
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-01-13 12:30:37 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-01-13 15:37:46 +0100
commit4431ed2484f0e66096642ee76a2bbeedec5bde79 (patch)
tree4faa3df1127dd28ee0962b44664ce82d170eb0c1 /tests/data/test1176
parent6773c7ca65cf2183295e56603f9b86a5ce816a06 (diff)
downloadcurl-4431ed2484f0e66096642ee76a2bbeedec5bde79.tar.gz
curl: make #0 not output the full URL
It was not intended nor documented! Added test 1176 to verify. Reported-by: vshmuk on hackerone Closes #4812
Diffstat (limited to 'tests/data/test1176')
-rw-r--r--tests/data/test117668
1 files changed, 68 insertions, 0 deletions
diff --git a/tests/data/test1176 b/tests/data/test1176
new file mode 100644
index 000000000..491bee16f
--- /dev/null
+++ b/tests/data/test1176
@@ -0,0 +1,68 @@
+<testcase>
+<info>
+<keywords>
+globbing
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+<data nocheck="yes">
+HTTP/1.1 200 OK
+Date: Thu, 09 Nov 2010 14:49:00 GMT
+Server: test-server/fake
+Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
+ETag: "21025-dc7-39462498"
+Accept-Ranges: bytes
+Content-Length: 6
+Connection: close
+Content-Type: text/html
+Funny-head: yesyes
+
+-foo-
+</data>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+http
+</server>
+ <name>
+HTTP GET
+ </name>
+ <command option="no-output">
+http://%HOSTIP:%HTTPPORT/1176 -o 'log/base-#0'
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<strip>
+^User-Agent:.*
+</strip>
+<protocol>
+GET /1176 HTTP/1.1
+Host: %HOSTIP:%HTTPPORT
+Accept: */*
+
+</protocol>
+<file name="log/base-#0">
+HTTP/1.1 200 OK
+Date: Thu, 09 Nov 2010 14:49:00 GMT
+Server: test-server/fake
+Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
+ETag: "21025-dc7-39462498"
+Accept-Ranges: bytes
+Content-Length: 6
+Connection: close
+Content-Type: text/html
+Funny-head: yesyes
+
+-foo-
+</file>
+</verify>
+</testcase>