]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Add test1180: Proxy request with -H "Proxy-Connection: Keep-Alive"
authorFabian Keil <fk@fabiankeil.de>
Sat, 16 Jan 2021 14:45:28 +0000 (15:45 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 19 Jan 2021 10:41:23 +0000 (11:41 +0100)
At the moment the test fails as curl sends two Proxy-Connection
headers.

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

index 660f80668cea0a469bf553d40d7cca0db854143b..e4823d52a7e0a1ba807ac2cb55ffcb5a5bd50e41 100644 (file)
@@ -137,7 +137,7 @@ test1144 test1145 test1146 test1147 test1148 test1149 test1150 test1151 \
 test1152 test1153 test1154 test1155 test1156 test1157 test1158 test1159 \
 test1160 test1161 test1162 test1163 test1164 test1165 test1166 test1167 \
 test1168          test1170 test1171 test1172 test1173 test1174 test1175 \
-test1176 test1177 test1178 test1179 \
+test1176 test1177 test1178 test1179 test1180 \
 \
 test1188 \
 \
diff --git a/tests/data/test1180 b/tests/data/test1180
new file mode 100644 (file)
index 0000000..88e8bc4
--- /dev/null
@@ -0,0 +1,48 @@
+<testcase>
+<info>
+<keywords>
+HTTP
+HTTP proxy
+</keywords>
+</info>
+
+# Server-side
+<reply>
+<data>
+HTTP/1.1 200 OK
+Server: Blafasel/5.0
+Date: Sat, 16 Jan 2021 14:48:30 GMT
+Content-Length: 12
+
+Bla bla bla
+</data>
+
+</reply>
+
+# Client-side
+<client>
+<server>
+http
+</server>
+<features>
+proxy
+</features>
+ <name>
+HTTP GET request with proxy and -H "Proxy-Connection: keep-alive"
+ </name>
+ <command>
+--proxy http://%HOSTIP:%HTTPPORT -H "Proxy-Connection: Keep-Alive" http://%HOSTIP:%HTTPPORT/1180
+</command>
+</client>
+
+<verify>
+<protocol>
+GET http://%HOSTIP:%HTTPPORT/1180 HTTP/1.1\r
+Host: %HOSTIP:%HTTPPORT\r
+User-Agent: curl/%VERSION\r
+Accept: */*\r
+Proxy-Connection: Keep-Alive\r
+\r
+</protocol>
+</verify>
+</testcase>