From: Daniel Stenberg Date: Thu, 6 Oct 2022 12:14:25 +0000 (+0200) Subject: test445: verifies the protocols-over-http-proxy flaw and fix X-Git-Tag: curl-7_86_0~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=038bfb8522a93328b7e65bd2b6b8387c974b9ac8;p=thirdparty%2Fcurl.git test445: verifies the protocols-over-http-proxy flaw and fix --- diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index 99dc92cb3b..cbb27973cb 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -71,7 +71,7 @@ test408 test409 test410 test411 test412 test413 test414 test415 \ \ test430 test431 test432 test433 test434 test435 test436 \ \ -test440 test441 test442 test443 test444 \ +test440 test441 test442 test443 test444 test445 \ \ test490 test491 test492 test493 test494 test495 test496 \ \ diff --git a/tests/data/test445 b/tests/data/test445 new file mode 100644 index 0000000000..0406c0f9ac --- /dev/null +++ b/tests/data/test445 @@ -0,0 +1,61 @@ + + + +HTTP +HTTP proxy + + + +# +# Server-side + + +HTTP/1.1 503 no just no +Date: Tue, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Accept-Ranges: bytes +Content-Length: 6 +Connection: close + +-foo- + + + +# +# Client-side + + +gopher +dict +http +ftp +imap +ldap +mqtt +pop3 +rtsp +scp +sftp +smb +smtp + + +http-proxy + + +Refuse tunneling protocols through HTTP proxy + + +-x http://%HOSTIP:%PROXYPORT/%TESTNUMBER -p gopher://127.0.0.1 dict://127.0.0.1 http://moo https://example telnet://another ftp://yes ftps://again imap://more ldap://perhaps mqtt://yes pop3://mail rtsp://harder scp://copy sftp://files smb://wird smtp://send + + + +# +# Verify data after the test has been "shot" + +# refused in the CONNECT + +56 + + +