]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: remove test1701
authorStefan Eissing <stefan@eissing.org>
Fri, 10 Jul 2026 07:58:08 +0000 (09:58 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 12 Jul 2026 16:03:48 +0000 (18:03 +0200)
Test 1701 did a HTTP/2 Upgrade in a HTTP/1.1 POST request. This will no
longer be supported in the upcoming nghttp2 release for security reasons
(Upgrade requests with body a re messy, error prone and can easily lead
to connection confusion).

As no other server we have supports this, remove the test.

Reported-by: firexinghe on github
Fixes #22280
Closes #22291

tests/data/Makefile.am
tests/data/test1701 [deleted file]

index 4ef4f55f958742fdf9f658d73129daa45122d644..53a1927146b5d1f05b7495996e9087a3c9d8542d 100644 (file)
@@ -223,7 +223,7 @@ test1669 test1670 test1671 test1672 test1673 test1674 test1675 test1676 \
 test1677                   test1680 test1681 test1682 test1683 test1684 \
 test1685 test1686 \
 \
-test1700 test1701 test1702 test1703 test1704 test1705 test1706 test1707 \
+test1700          test1702 test1703 test1704 test1705 test1706 test1707 \
 test1708 test1709 test1710 test1711 test1712 test1713 test1714 test1715 \
 test1720 test1721 test1722 test1723 test1724 test1725 \
 \
diff --git a/tests/data/test1701 b/tests/data/test1701
deleted file mode 100644 (file)
index 50e782b..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-<?xml version="1.0" encoding="US-ASCII"?>
-<testcase>
-<info>
-<keywords>
-HTTP
-HTTP POST
-HTTP/2
-</keywords>
-</info>
-
-# Server-side
-<reply>
-<data crlf="headers" nocheck="yes">
-HTTP/1.1 200 OK
-Date: Tue, 09 Nov 2010 14:49:00 GMT
-Server: test-server/fake
-Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
-ETag: "21025-dc7-39462498"
-Accept-Ranges: bytes
-Content-Length: 6
-Connection: close
-Content-Type: text/html
-Funny-head: yesyes
-
--foo-
-</data>
-</reply>
-
-# Client-side
-<client>
-<features>
-h2c
-</features>
-<server>
-http/2
-</server>
-<name>
-HTTP/2 POST with Upgrade:
-</name>
-<command>
-http://%HOSTIP:%HTTP2PORT/%TESTNUMBER --http2 -d "datatosend"
-</command>
-</client>
-
-# Verify data after the test has been "shot"
-<verify>
-<strip>
-^X-Forwarded-Proto:.*
-^Via:.*
-</strip>
-<protocol crlf="yes" nonewline="yes">
-POST /%TESTNUMBER HTTP/1.1
-Host: %HOSTIP:%HTTP2PORT
-User-Agent: curl/%VERSION
-Accept: */*
-Content-Length: 10
-Content-Type: application/x-www-form-urlencoded
-
-datatosend
-</protocol>
-<stdout crlf="headers">
-HTTP/1.1 101 Switching Protocols
-Connection: Upgrade
-Upgrade: h2c
-
-HTTP/2 200%SP
-date: Tue, 09 Nov 2010 14:49:00 GMT
-last-modified: Tue, 13 Jun 2000 12:10:00 GMT
-etag: "21025-dc7-39462498"
-accept-ranges: bytes
-content-length: 6
-content-type: text/html
-funny-head: yesyes
-via: 1.1 nghttpx
-
--foo-
-</stdout>
-<stripfile>
-s/^server: nghttpx.*\r?\n//
-</stripfile>
-</verify>
-</testcase>