From 5bf653464f436c53defb9b81260a4cd9274d0d3b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 31 May 2020 23:10:22 +0200 Subject: [PATCH] test1460: verify that -Ji is not ok --- tests/data/Makefile.inc | 4 ++- tests/data/test1460 | 62 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 tests/data/test1460 diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index d6f7915be..ecb5091ba 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -177,7 +177,9 @@ 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 test1500 test1501 test1502 test1503 test1504 test1505 \ +test1458 test1459 test1460 \ +\ +test1500 test1501 test1502 test1503 test1504 test1505 \ test1506 test1507 test1508 test1509 test1510 test1511 test1512 test1513 \ test1514 test1515 test1516 test1517 test1518 test1519 test1520 test1521 \ test1522 test1523 test1524 \ diff --git a/tests/data/test1460 b/tests/data/test1460 new file mode 100644 index 000000000..d7b30c5e8 --- /dev/null +++ b/tests/data/test1460 @@ -0,0 +1,62 @@ + + + +HTTP +HTTP GET +-J + + + +# + + +HTTP/1.1 200 swsclose + 12345 +fooo +54 3 2 1 +Content-Disposition: filename=name1460; charset=funny; option=strange + + + + +# +# Client-side + +# this relies on the debug feature to allow us to set directory to store the +# -J output in + +debug + + +http + + +HTTP GET with -Ji and Content-Disposition with existing file + + +CURL_TESTDIR=%PWD/log + + +http://%HOSTIP:%HTTPPORT/1460 -Ji -O + + +initial content + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + +# Warning: --include and --remote-header-name cannot be combined. + +2 + + +initial content + + + +