]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Add test1181: Proxy request with --proxy-header "Connection: Keep-Alive"
authorFabian Keil <fk@fabiankeil.de>
Sat, 16 Jan 2021 14:55:08 +0000 (15:55 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 19 Jan 2021 10:41:23 +0000 (11:41 +0100)
tests/data/Makefile.inc
tests/data/test1181 [new file with mode: 0644]

index e4823d52a7e0a1ba807ac2cb55ffcb5a5bd50e41..08ac64882f434ef40357c99cab8426950571a880 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 test1180 \
+test1176 test1177 test1178 test1179 test1180 test1181 \
 \
 test1188 \
 \
diff --git a/tests/data/test1181 b/tests/data/test1181
new file mode 100644 (file)
index 0000000..3d77b63
--- /dev/null
@@ -0,0 +1,48 @@
+<testcase>
+<info>
+<keywords>
+HTTP
+HTTP proxy
+</keywords>
+</info>
+
+# Server-side
+<reply>
+<data>
+HTTP/1.1 200 OK\r
+Server: Blafasel/5.0\r
+Date: Sat, 16 Jan 2021 14:48:30 GMT\r
+Content-Length: 12\r
+\r
+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\r
+Host: %HOSTIP:%HTTPPORT\r
+User-Agent: curl/%VERSION\r
+Accept: */*\r
+Proxy-Connection: Keep-Alive\r
+\r
+</protocol>
+</verify>
+</testcase>