From 03bb3f84b219bf1d2eba41a81291595364898bea Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Wed, 13 May 2026 14:41:36 +0200 Subject: [PATCH] Add test1628: HTTP PUT from file with weird letters through proxy The test is based on test58 with minor modifications. Currently the test fails as the letters used for the percent-encoding are lower-case instead of upper-case. --- tests/data/Makefile.am | 2 +- tests/data/test1628 | 51 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 tests/data/test1628 diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index b63c9c06a0..8f20723cdb 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -214,7 +214,7 @@ test1596 test1597 test1598 test1599 test1600 test1601 test1602 test1603 \ test1604 test1605 test1606 test1607 test1608 test1609 test1610 test1611 \ test1612 test1613 test1614 test1615 test1616 test1617 test1618 test1619 \ test1620 test1621 test1622 test1623 test1624 test1625 test1626 test1627 \ -\ +test1628 \ test1630 test1631 test1632 test1633 test1634 test1635 test1636 test1637 \ test1638 test1639 test1640 test1641 test1642 test1643 test1644 \ \ diff --git a/tests/data/test1628 b/tests/data/test1628 new file mode 100644 index 0000000000..414e888e7b --- /dev/null +++ b/tests/data/test1628 @@ -0,0 +1,51 @@ + + + + +HTTP +HTTP PUT +HTTP proxy + + +# Server-side + + +HTTP/1.0 200 OK swsclose +Date: Tue, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake + +blablabla + + + + +# Client-side + + +http + + +HTTP PUT from file with weird letters through proxy + + +--proxy http://%HOSTIP:%HTTPPORT http://www.example.org/we/want/ -T %LOGDIR/%TESTNUMBERte[]st.txt -g + + +a few bytes + + + +# Verify data after the test has been "shot" + + +PUT http://www.example.org/we/want/%TESTNUMBERte%5B%5Dst.txt HTTP/1.1 +Host: www.example.org +User-Agent: curl/%VERSION +Accept: */* +Proxy-Connection: Keep-Alive +Content-Length: 12 + +a few bytes + + + -- 2.53.0