From: Daniel Stenberg Date: Wed, 5 Apr 2023 21:44:44 +0000 (+0200) Subject: tests: 1078 1288 1297 use valid IPv4 addresses X-Git-Tag: curl-8_1_0~216 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3da642c4f0cc7dbc0bc428f8028e2b45f1eca379;p=thirdparty%2Fcurl.git tests: 1078 1288 1297 use valid IPv4 addresses With the enhanced URL parser, these tests failed because of their bad IPv4 use. --- diff --git a/tests/data/test1078 b/tests/data/test1078 index 6f303d0bc4..2e1defac3b 100644 --- a/tests/data/test1078 +++ b/tests/data/test1078 @@ -43,7 +43,7 @@ http-proxy HTTP 1.0 CONNECT with proxytunnel and downgrade GET to HTTP/1.0 ---proxy1.0 %HOSTIP:%PROXYPORT -p http://%HOSTIP.%TESTNUMBER:%HTTPPORT/we/want/that/page/%TESTNUMBER http://%HOSTIP.%TESTNUMBER:%HTTPPORT/we/want/that/page/%TESTNUMBER +--proxy1.0 %HOSTIP:%PROXYPORT -p http://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER http://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER proxy @@ -54,20 +54,20 @@ proxy # Verify data after the test has been "shot" -CONNECT %HOSTIP.%TESTNUMBER:%HTTPPORT HTTP/1.0 -Host: %HOSTIP.%TESTNUMBER:%HTTPPORT +CONNECT %HOSTIP:%HTTPPORT HTTP/1.0 +Host: %HOSTIP:%HTTPPORT User-Agent: curl/%VERSION Proxy-Connection: Keep-Alive GET /we/want/that/page/%TESTNUMBER HTTP/1.1 -Host: %HOSTIP.%TESTNUMBER:%HTTPPORT +Host: %HOSTIP:%HTTPPORT User-Agent: curl/%VERSION Accept: */* GET /we/want/that/page/%TESTNUMBER HTTP/1.0 -Host: %HOSTIP.%TESTNUMBER:%HTTPPORT +Host: %HOSTIP:%HTTPPORT User-Agent: curl/%VERSION Accept: */* diff --git a/tests/data/test1288 b/tests/data/test1288 index 583fc42f32..e94bd5104d 100644 --- a/tests/data/test1288 +++ b/tests/data/test1288 @@ -42,7 +42,7 @@ http-proxy Suppress proxy CONNECT response headers ---proxytunnel --suppress-connect-headers --dump-header - --include --write-out "\nCONNECT CODE: %{http_connect}\nRECEIVED HEADER BYTE TOTAL: %{size_header}\n" --proxy %HOSTIP:%PROXYPORT http://%HOSTIP.%TESTNUMBER:%HTTPPORT/we/want/that/page/%TESTNUMBER +--proxytunnel --suppress-connect-headers --dump-header - --include --write-out "\nCONNECT CODE: %{http_connect}\nRECEIVED HEADER BYTE TOTAL: %{size_header}\n" --proxy %HOSTIP:%PROXYPORT http://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER proxy @@ -53,15 +53,15 @@ proxy # Verify data after the test has been "shot" -CONNECT %HOSTIP.%TESTNUMBER:%HTTPPORT HTTP/1.1 -Host: %HOSTIP.%TESTNUMBER:%HTTPPORT +CONNECT %HOSTIP:%HTTPPORT HTTP/1.1 +Host: %HOSTIP:%HTTPPORT User-Agent: curl/%VERSION Proxy-Connection: Keep-Alive GET /we/want/that/page/%TESTNUMBER HTTP/1.1 -Host: %HOSTIP.%TESTNUMBER:%HTTPPORT +Host: %HOSTIP:%HTTPPORT User-Agent: curl/%VERSION Accept: */* diff --git a/tests/data/test1297 b/tests/data/test1297 index f410362238..386154af30 100644 --- a/tests/data/test1297 +++ b/tests/data/test1297 @@ -33,7 +33,7 @@ http-proxy CONNECT to peer that returns nothing ---proxytunnel --proxy %HOSTIP:%PROXYPORT http://%HOSTIP.%TESTNUMBER:%HTTPPORT/we/want/that/page/%TESTNUMBER +--proxytunnel --proxy %HOSTIP:%PROXYPORT http://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER proxy @@ -44,15 +44,15 @@ proxy # Verify data after the test has been "shot" -CONNECT %HOSTIP.%TESTNUMBER:%HTTPPORT HTTP/1.1 -Host: %HOSTIP.%TESTNUMBER:%HTTPPORT +CONNECT %HOSTIP:%HTTPPORT HTTP/1.1 +Host: %HOSTIP:%HTTPPORT User-Agent: curl/%VERSION Proxy-Connection: Keep-Alive GET /we/want/that/page/%TESTNUMBER HTTP/1.1 -Host: %HOSTIP.%TESTNUMBER:%HTTPPORT +Host: %HOSTIP:%HTTPPORT User-Agent: curl/%VERSION Accept: */*