diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-09-22 08:55:11 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-09-22 10:54:42 +0200 |
commit | 3e80895da7becba2d3fbfaaa6db222a1974467d3 (patch) | |
tree | 26c938f091ef907b364547b4e71f370ac9b6e7d2 /tests | |
parent | e5803089a9dafcbf7f98730fefceb50872209817 (diff) | |
download | curl-3e80895da7becba2d3fbfaaa6db222a1974467d3.tar.gz |
test1297: verify GOT_NOTHING with http proxy tunnel
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/Makefile.inc | 66 | ||||
-rw-r--r-- | tests/data/test1297 | 66 |
2 files changed, 97 insertions, 35 deletions
diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index 42f427eea..b4774a5f7 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -136,49 +136,45 @@ test1136 test1137 test1138 test1139 test1140 test1141 test1142 test1143 \ 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 \ +test1168 test1170 test1171 test1172 test1173 test1174 test1175 \ +test1176 test1177 test1178 test1179 \ \ test1190 test1191 test1192 test1193 test1194 test1195 test1196 test1197 \ \ test1200 test1201 test1202 test1203 test1204 test1205 test1206 test1207 \ test1208 test1209 test1210 test1211 test1212 test1213 test1214 test1215 \ -test1216 test1217 test1218 test1219 \ -test1220 test1221 test1222 test1223 test1224 test1225 test1226 test1227 \ -test1228 test1229 test1230 test1231 test1232 test1233 test1234 test1235 \ -test1236 test1237 test1238 test1239 test1240 test1241 test1242 test1243 \ -test1244 test1245 test1246 test1247 test1248 test1249 test1250 test1251 \ -test1252 test1253 test1254 test1255 test1256 test1257 test1258 test1259 \ -test1260 test1261 test1262 test1263 test1264 test1265 test1266 test1267 \ -test1268 test1269 test1270 test1271 \ +test1216 test1217 test1218 test1219 test1220 test1221 test1222 test1223 \ +test1224 test1225 test1226 test1227 test1228 test1229 test1230 test1231 \ +test1232 test1233 test1234 test1235 test1236 test1237 test1238 test1239 \ +test1240 test1241 test1242 test1243 test1244 test1245 test1246 test1247 \ +test1248 test1249 test1250 test1251 test1252 test1253 test1254 test1255 \ +test1256 test1257 test1258 test1259 test1260 test1261 test1262 test1263 \ +test1264 test1265 test1266 test1267 test1268 test1269 test1270 test1271 \ \ test1280 test1281 test1282 test1283 test1284 test1285 test1286 test1287 \ test1288 test1289 test1290 test1291 test1292 test1293 test1294 test1295 \ -test1296 \ -\ -test1298 test1299 test1300 test1301 test1302 test1303 test1304 test1305 \ -test1306 test1307 test1308 test1309 test1310 test1311 test1312 test1313 \ -test1314 test1315 test1316 test1317 test1318 test1319 test1320 test1321 \ -test1322 test1323 test1324 test1325 test1326 test1327 test1328 test1329 \ -test1330 test1331 test1332 test1333 test1334 test1335 test1336 test1337 \ -test1338 test1339 test1340 test1341 test1342 test1343 test1344 test1345 \ -test1346 test1347 test1348 test1349 test1350 test1351 test1352 test1353 \ -test1354 test1355 test1356 test1357 test1358 test1359 test1360 test1361 \ -test1362 test1363 test1364 test1365 test1366 test1367 test1368 test1369 \ -test1370 test1371 test1372 test1373 test1374 test1375 test1376 test1377 \ -test1378 test1379 test1380 test1381 test1382 test1383 test1384 test1385 \ -test1386 test1387 test1388 test1389 test1390 test1391 test1392 test1393 \ -test1394 test1395 test1396 test1397 test1398 test1399 test1400 test1401 \ -test1402 test1403 test1404 test1405 test1406 test1407 test1408 test1409 \ -test1410 test1411 test1412 test1413 test1414 test1415 test1416 test1417 \ -test1418 test1419 test1420 test1421 test1422 test1423 test1424 test1425 \ -test1426 test1427 test1428 test1429 test1430 test1431 test1432 test1433 \ -test1434 test1435 test1436 test1437 test1438 test1439 test1440 test1441 \ -test1442 test1443 test1444 test1445 test1446 test1447 test1448 test1449 \ -test1450 test1451 test1452 test1453 test1454 test1455 test1456 test1457 \ -test1458 test1459 test1460 test1461 test1462 test1463 test1464 \ +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 test1322 test1323 test1324 test1325 test1326 test1327 \ +test1328 test1329 test1330 test1331 test1332 test1333 test1334 test1335 \ +test1336 test1337 test1338 test1339 test1340 test1341 test1342 test1343 \ +test1344 test1345 test1346 test1347 test1348 test1349 test1350 test1351 \ +test1352 test1353 test1354 test1355 test1356 test1357 test1358 test1359 \ +test1360 test1361 test1362 test1363 test1364 test1365 test1366 test1367 \ +test1368 test1369 test1370 test1371 test1372 test1373 test1374 test1375 \ +test1376 test1377 test1378 test1379 test1380 test1381 test1382 test1383 \ +test1384 test1385 test1386 test1387 test1388 test1389 test1390 test1391 \ +test1392 test1393 test1394 test1395 test1396 test1397 test1398 test1399 \ +test1400 test1401 test1402 test1403 test1404 test1405 test1406 test1407 \ +test1408 test1409 test1410 test1411 test1412 test1413 test1414 test1415 \ +test1416 test1417 test1418 test1419 test1420 test1421 test1422 test1423 \ +test1424 test1425 test1426 test1427 test1428 test1429 test1430 test1431 \ +test1432 test1433 test1434 test1435 test1436 test1437 test1438 test1439 \ +test1440 test1441 test1442 test1443 test1444 test1445 test1446 test1447 \ +test1448 test1449 test1450 test1451 test1452 test1453 test1454 test1455 \ +test1456 test1457 test1458 test1459 test1460 test1461 test1462 test1463 \ +test1464 \ \ test1500 test1501 test1502 test1503 test1504 test1505 test1506 test1507 \ test1508 test1509 test1510 test1511 test1512 test1513 test1514 test1515 \ 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> |