From: Daniel Stenberg Date: Mon, 3 Jan 2022 12:35:53 +0000 (+0100) Subject: test719-721: verify SOCKS details X-Git-Tag: curl-7_81_0~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dbbf3609f3d874d6d709f60a6005f8dcce74e95b;p=thirdparty%2Fcurl.git test719-721: verify SOCKS details Using the new verify/socks details --- diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index 60930664d4..9e0372b6ec 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -95,7 +95,7 @@ test670 test671 test672 test673 test674 test675 test676 test677 test678 \ \ test700 test701 test702 test703 test704 test705 test706 test707 test708 \ test709 test710 test711 test712 test713 test714 test715 test716 test717 \ -test718 test719 test720 \ +test718 test719 test720 test721 \ \ test800 test801 test802 test803 test804 test805 test806 test807 test808 \ test809 test810 test811 test812 test813 test814 test815 test816 test817 \ diff --git a/tests/data/test719 b/tests/data/test719 index 3c242b1f6b..7a5a4ff7e3 100644 --- a/tests/data/test719 +++ b/tests/data/test719 @@ -31,14 +31,14 @@ Funny-head: yesyes # Client-side -http-ipv6 +http socks5 -HTTP GET with IPv6 numerical via SOCKS5h set with --proxy +HTTP GET with IPv6 numerical via SOCKS5h -http://%HOST6IP:%HTTP6PORT/%TESTNUMBER --proxy socks5h://%HOSTIP:%SOCKSPORT +http://[2200::33]:%HTTPPORT/%TESTNUMBER --proxy socks5h://%HOSTIP:%SOCKSPORT @@ -47,10 +47,13 @@ http://%HOST6IP:%HTTP6PORT/%TESTNUMBER --proxy socks5h://%HOSTIP:%SOCKSPORT GET /%TESTNUMBER HTTP/1.1 -Host: %HOST6IP:%HTTP6PORT +Host: [2200::33]:%HTTPPORT User-Agent: curl/%VERSION Accept: */* + +atyp 4 => 22 00 00 00 00 00 00 00 00 00 00 00 00 00 00 33 + diff --git a/tests/data/test720 b/tests/data/test720 index 876a7a3263..786d83552f 100644 --- a/tests/data/test720 +++ b/tests/data/test720 @@ -35,7 +35,7 @@ http socks5 -HTTP GET with IPv4 numerical via SOCKS5h set with --proxy +HTTP GET with IPv4 numerical via SOCKS5h http://12.34.56.78:%HTTPPORT/%TESTNUMBER --proxy socks5h://%HOSTIP:%SOCKSPORT @@ -52,5 +52,8 @@ User-Agent: curl/%VERSION Accept: */* + +atyp 1 => 12.34.56.78 + diff --git a/tests/data/test721 b/tests/data/test721 new file mode 100644 index 0000000000..8af61dabfb --- /dev/null +++ b/tests/data/test721 @@ -0,0 +1,59 @@ + + + +HTTP +HTTP GET +SOCKS5 +SOCKS5h + + + +# +# Server-side + + +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- + + + +# +# Client-side + + +http +socks5 + + +HTTP GET with host name using SOCKS5h + + +http://this.is.a.host.name:%HTTPPORT/%TESTNUMBER --proxy socks5h://%HOSTIP:%SOCKSPORT + + + +# +# Verify data after the test has been "shot" + + +GET /%TESTNUMBER HTTP/1.1 +Host: this.is.a.host.name:%HTTPPORT +User-Agent: curl/%VERSION +Accept: */* + + + +atyp 3 => this.is.a.host.name + + +