From 64d469521e0e7a5bcd4245f3cd8d8f368de6f23e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 22 Sep 2020 08:55:11 +0200 Subject: test1297: verify GOT_NOTHING with http proxy tunnel --- tests/data/Makefile.inc | 3 +-- tests/data/test1297 | 66 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 tests/data/test1297 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 @@ + + + +HTTP +HTTP GET +HTTP CONNECT +HTTP proxy +proxytunnel + + + +# +# Server-side + + +HTTP/1.1 200 Mighty fine indeed +Server: test tunnel 2000 + + + + + + + +# +# Client-side + + +http +http-proxy + + +CONNECT to peer that returns nothing + + +--proxytunnel --proxy %HOSTIP:%PROXYPORT http://%HOSTIP.1297:%HTTPPORT/we/want/that/page/1297 + + +proxy + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +CONNECT %HOSTIP.1297:%HTTPPORT HTTP/1.1 +Host: %HOSTIP.1297:%HTTPPORT +Proxy-Connection: Keep-Alive + + + +GET /we/want/that/page/1297 HTTP/1.1 +Host: %HOSTIP.1297:%HTTPPORT +Accept: */* + + +# 52 - got nothing + +52 + + + -- cgit v1.2.1