summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-09-22 08:55:11 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-09-22 08:57:32 +0200
commit64d469521e0e7a5bcd4245f3cd8d8f368de6f23e (patch)
treecfaded62a71fb6ea51c538a640a3d322234920e4
parent4ae80597c420e08ee80f559deff749ad8b842163 (diff)
downloadcurl-bagder/proxy-cutoff.tar.gz
test1297: verify GOT_NOTHING with http proxy tunnelbagder/proxy-cutoff
-rw-r--r--tests/data/Makefile.inc3
-rw-r--r--tests/data/test129766
2 files changed, 67 insertions, 2 deletions
diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc
index 42f427eea..46559a080 100644
--- a/tests/data/Makefile.inc
+++ b/tests/data/Makefile.inc
@@ -156,8 +156,7 @@ test1268 test1269 test1270 test1271 \
\
test1280 test1281 test1282 test1283 test1284 test1285 test1286 test1287 \
test1288 test1289 test1290 test1291 test1292 test1293 test1294 test1295 \
-test1296 \
-\
+test1296 test1297 \
test1298 test1299 test1300 test1301 test1302 test1303 test1304 test1305 \
test1306 test1307 test1308 test1309 test1310 test1311 test1312 test1313 \
test1314 test1315 test1316 test1317 test1318 test1319 test1320 test1321 \
diff --git a/tests/data/test1297 b/tests/data/test1297
new file mode 100644
index 000000000..56a62a81c
--- /dev/null
+++ b/tests/data/test1297
@@ -0,0 +1,66 @@
+<testcase>
+<info>
+<keywords>
+HTTP
+HTTP GET
+HTTP CONNECT
+HTTP proxy
+proxytunnel
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+<connect>
+HTTP/1.1 200 Mighty fine indeed
+Server: test tunnel 2000
+
+</connect>
+
+<data nocheck="yes">
+</data>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+http
+http-proxy
+</server>
+<name>
+CONNECT to peer that returns nothing
+</name>
+<command>
+--proxytunnel --proxy %HOSTIP:%PROXYPORT http://%HOSTIP.1297:%HTTPPORT/we/want/that/page/1297
+</command>
+<features>
+proxy
+</features>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<strip>
+^User-Agent:.*
+</strip>
+<proxy>
+CONNECT %HOSTIP.1297:%HTTPPORT HTTP/1.1
+Host: %HOSTIP.1297:%HTTPPORT
+Proxy-Connection: Keep-Alive
+
+</proxy>
+<protocol>
+GET /we/want/that/page/1297 HTTP/1.1
+Host: %HOSTIP.1297:%HTTPPORT
+Accept: */*
+
+</protocol>
+# 52 - got nothing
+<errorcode>
+52
+</errorcode>
+</verify>
+</testcase>