summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Keil <fk@fabiankeil.de>2021-01-16 15:55:08 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-01-18 10:36:34 +0100
commit17265722a1470e8e854ac927ee97d297c7c32f1a (patch)
tree6978d0e56fdd4c611fdd92f247af5a6f4716eed8
parent2bfb6fed4761dacdd2e629c6293d3003e04e994c (diff)
downloadcurl-Fabian-Keil/proxy-tests.tar.gz
Add test1181: Proxy request with --proxy-header "Connection: Keep-Alive"Fabian-Keil/proxy-tests
-rw-r--r--tests/data/Makefile.inc2
-rw-r--r--tests/data/test118148
2 files changed, 49 insertions, 1 deletions
diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc
index 0722ef122..d84c7c2aa 100644
--- a/tests/data/Makefile.inc
+++ b/tests/data/Makefile.inc
@@ -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 test1180 \
+test1176 test1177 test1178 test1179 test1180 test1181 \
\
test1188 \
\
diff --git a/tests/data/test1181 b/tests/data/test1181
new file mode 100644
index 000000000..3d77b634a
--- /dev/null
+++ b/tests/data/test1181
@@ -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 --proxy-header "Proxy-Connection: Keep-Alive"
+ </name>
+ <command>
+--proxy http://%HOSTIP:%HTTPPORT --proxy-header "Proxy-Connection: Keep-Alive" http://%HOSTIP:%HTTPPORT/1181
+</command>
+</client>
+
+<verify>
+<protocol>
+GET http://%HOSTIP:%HTTPPORT/1181 HTTP/1.1
+Host: %HOSTIP:%HTTPPORT
+User-Agent: curl/%VERSION
+Accept: */*
+Proxy-Connection: Keep-Alive
+
+</protocol>
+</verify>
+</testcase>